Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

Java proxy SSL issue - unable to find valid certification path to requested target

$
0
0


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());

 

http://www.mkyong.com/webservices/jax-ws/suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/

 

Thanks


Viewing all articles
Browse latest Browse all 6719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>