Search This Blog

Posts

During certificate import using InstallCert.Java, I faced this issue. This can cause if you don't have required restriction policy file or the key size is greater than the once deployed by Java by default which is 128 bit.

I was trying to run Java application, which was using REST Template to implement rest client. The application was connecting to REST service (REST API's) over SSL. The certificate used for SSL was self signed certificate.

The self signed certificate was causing error "unable to find valid certification path to requested target" every time I tried to connect to REST Service.

In order to resolve this error, I had to add the certificate to the JVM key store. I tried multiple steps, even corrupted the keystore but finally was able to run application successfully.

You would need InstallCert.Java to successfully import the certificate which can be found at InstallCert.Java

Above git repo has ReadMe which details out all steps required for importing the certificate. If you happen to corrupt the keystore you can follow below link to restore it.