Every step: Go to a website that starts with a https://www.xxx.com, download the certificate you want to import,
On the page, right-click >> properties >> Tap Certificates >>
Then click on the "more info" Toggle bar above >>
Then click on the "Copy to File" button in the lower right corner.
It will pop up a Certificate Export Wizard dialog box, follow the prompts step by step to complete the line.
For example: Save As Wcceca.cer, placed under D-disk
The second step: How to import the above step (wcceca.cer) This certificate into the Cacerts certificate library in Java?
For example: My JDK installs this directory in
C:\Program files\java\jdk1.8.0_131
Start >> run >> input cmd into DOS command line >>
Then use the CD to enter the C:\Program files\java\jdk1.8.0_131\jre\lib\security directory.
Enter the following command to execute
Keytool-import-alias Cacerts-keystore Cacerts-file D:\wcceca.cer
You just typed in Changeit, which is the default password for the Cacerts certificate store in Java,
use after import -list View
Keytool-list-keystore Cacerts
When you update later, delete the original certificate, and then import the new certificate
Keytool-delete-alias Akazam_email-keystorecacerts
Keytool-import-alias akazam_email-file Akazam_email.cer-keystore Cacerts
Note that if there are spaces in the java_home settings, Java execution errors can be java_home in the C: \ ProgramFiles in the environment variable c:\progra~1
How to import a security certificate into the Cacerts certificate library in Java