Sometimes eclipse cannot connect to marketplace or plugin sites for installing plugins because of security validator exception
Problem:
sun.security.validator.ValidatorException
or
sun.security.validator.ValidatorException: PKIX path building failed
Resolution:
- tuststore does not contain the certificate of the SSL service you're connecting to
- This is due to corporate environments where your workstation is intercepted by proxy, firewall or something that inspects https traffic.
- or the jdk version does not include the SSL service you're connecting to. jdk release with certificates in the jre/lib/security/cacerts file. the certificates are increase while jdk version goes up
How To Solve
- Download Keystore Explorer and Install
- Open the application (Run as administrator)
-
Examine > Examine SSL > Connection Settings
- SSL Host: google.com
- SSL Port: 443
-
Click "OK"
- Click "PEM" and "Export"
- Save as "googlecert.crt"
-
File > Open > C:\Program Files\Java\jdk1.8.0_261\jre\
lib\security\cacerts (JDK path)
- Enter the password: changeit
- Tools => Import trusted certificate > Select the "googlecert.crt" > Click "OK"
- Save the "cacerts" file.
- Repeat steps 6 through 9 for the JRE (C:\Program Files\Java\jre1.8.0_261\lib\security\ cacerts)
- Restart your PC.
Comments
Post a Comment