PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target
GOOGLE for details on how SSL works.
2. You need to import the public key certificate given to you into a YOURKEYSTORE and use it
NOTE: I still wonder if this is the correct way you use to set up/import pk certificate for Websphere, Glassfish, Oracle
but a stand-alone java application, it works.
rakesh kumar nampally
Joined: Feb 03, 2007
Thanks Paul & Hameed for quick replies.
Here is what i am trying to achieve:
I have a web service residing in Oralce Websphere server which runs on SSL certificate. I am trying to consume that web service from a client program inside my application by generating stubs using axis2.
when i generate stubs i dont see any errors, but when i try to consume or invoke the web service operation it is showing below exception. I think i need to import the certificate from the service provider into my application which runs on JBoss unix machine. But i want to know where to keep the client certificate given web service provider.
Joined: Jan 19, 2009
You have to set these two setting before calling web service from your client.
certificate.jks file is created from the certificate.cer file provided by your WebService provider.
If the problem persists then might be you are using the incorrect certificate.
Also try it with enabling debug option and see what is happening on console.
Joined: Jul 26, 2011
1. For recommendation on the management of certificates, keystore and truststore
you need to check the documentation for your specific version of JBOSS version.
This is for dev and production. This is a must.
2. Now, for DEV only,
a. import the certificate from the service provider into the truststore
and store it in server.truststore for example
where YYYY is the server configuration like default for example
b. Refer to this <jboss_installation_directory>\server\YYYY\conf\server.truststore
within the code
call the service provider
c. OR Refer to this <jboss_installation_directory>\server\YYYY\conf\server.truststore
by adding to JVM arguments