Configuration of JAVA Rest Client to work over Self signed SSL certificates successfully
JAVA Rest Client over self signed SSL certificates : 1. If jvm does not have the certificate installed of the server on which secured service is installed, then we get following error : com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetD. 2. Use portecle-1.11 software to install the certificate in the cacerts of the JVM or we can use java keytool as well. Copy the "cacerts" keystore file from the jre inside jdk from : C:\Program Files\Java\jdk1.8.0_181\jre\lib\security to some other location (ie. desktop) so that you can install the server certificate in this cacerts file first and then replace the original "cacerts" keystore to the new "cacerts". For above thing go to portcle and first open the "cacerts" ...