Skip to main content
Added markdown.
Source Link
Abra
  • 21k
  • 14
  • 102
  • 74

Most useful approach is import the certificate.

  1. You can check the certificate of your HTTPS site and export it from browser.

  2. You can easily import it in cacerts by Keytool command from your java path inside bin. run below command keytool -keystore ..\lib\security\cacerts -import -alias example2 -file <path_to_expotrted cert in step 4> use password - changeit

  3. Also add below command to your eclipse.ini file to read the truststore from cacerts:

-Djavax.net.ssl.trustStore=C:\Program Files\Java\jdk-22\lib\security\cacerts

keytool -keystore ..\lib\security\cacerts -import -alias example2 -file <path_to_expotrted cert in step 4> use password - changeit
  1. Also add below command to your eclipse.ini file to read the truststore from cacerts
-Djavax.net.ssl.trustStore=C:\Program Files\Java\jdk-22\lib\security\cacerts

**NOTE: Please change "C:\Program Files\Java\jdk-22" this accordinglyNOTE: Please change C:\Program Files\Java\jdk-22 to your JDK.

Most useful approach is import the certificate.

  1. You can check the certificate of your HTTPS site and export it from browser.

  2. You can easily import it in cacerts by Keytool command from your java path inside bin. run below command keytool -keystore ..\lib\security\cacerts -import -alias example2 -file <path_to_expotrted cert in step 4> use password - changeit

  3. Also add below command to your eclipse.ini file to read the truststore from cacerts

-Djavax.net.ssl.trustStore=C:\Program Files\Java\jdk-22\lib\security\cacerts

**NOTE: Please change "C:\Program Files\Java\jdk-22" this accordingly

Most useful approach is import the certificate.

  1. You can check the certificate of your HTTPS site and export it from browser.

  2. You can easily import it in cacerts by Keytool command from your java path inside bin. run below command:

keytool -keystore ..\lib\security\cacerts -import -alias example2 -file <path_to_expotrted cert in step 4> use password - changeit
  1. Also add below command to your eclipse.ini file to read the truststore from cacerts
-Djavax.net.ssl.trustStore=C:\Program Files\Java\jdk-22\lib\security\cacerts

NOTE: Please change C:\Program Files\Java\jdk-22 to your JDK.

Source Link

Most useful approach is import the certificate.

  1. You can check the certificate of your HTTPS site and export it from browser.

  2. You can easily import it in cacerts by Keytool command from your java path inside bin. run below command keytool -keystore ..\lib\security\cacerts -import -alias example2 -file <path_to_expotrted cert in step 4> use password - changeit

  3. Also add below command to your eclipse.ini file to read the truststore from cacerts

-Djavax.net.ssl.trustStore=C:\Program Files\Java\jdk-22\lib\security\cacerts

**NOTE: Please change "C:\Program Files\Java\jdk-22" this accordingly