Most useful approach is import the certificate.
You can check the certificate of your HTTPS site and export it from browser.
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
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
- Also add below command to your
eclipse.inifile 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.