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