on 03-24-2015 2:59 PM
Dear Experts,
I'm trying to establish a SSL connection through my java proxy code. Below is my code snippet and the blog I followed to download the SSL certs of my vendor. But when I run this code from PI server, I get the error "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". I'm really not sure how to refer the trustStore path or fix this issue. Please suggest.
System.setProperty(
"javax.net.ssl.trustStore","//usr/lib64/jvm/jre/lib/security/jssecacerts");
SSLSocketFactory ssf = (SSLSocketFactory)SSLSocketFactory.getDefault();
s = ssf.createSocket(url.getHost(), (-1 == url.getPort()) ? 443 : url.getPort());
Thanks
Hi Joe,
Check this link may be it is helpful.
Accessing the AS Java Keystore - SAP NetWeaver Process Integration - SAP Library
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Though i never tried such scenario, did you try removing the extra forward slash
"//usr/lib64/jvm/jre/lib/security/jssecacerts"
instead
"/usr/lib64/jvm/jre/lib/security/jssecacerts"
and i assume that is a valid path.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.