I am built a client web-service application in Jdeveloper 11.1.1.7 to conect to external server application. In order to connect to the external server application , I need to configure the server certificate in the trusted key store. I already did that as follow and every thing works fine from Jdeveloper.
Configure Server certificate as trusted:
System.setProperty("javax.net.ssl.trustStore",[Trust Store Path goes here]);
System.setProperty("javax.net.ssl.trustStorePassword", [Trust Store Password goes here]);
Problem now when deploying this client application on the weblogic server 10.3.5 , I am getting the this exception:
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 target
I did not define the certificate on weblogic trust store. I thought that it is enough to configure it in the code only.
Summery:
Is it enough to configure the certificate in the client application. So each client application will have it's own trust store file. Or I should have one common trust store (defined in weblogic console) that will be shared with all client applications that run in this sever ?