Hi, I want to connect to a HTTPS server, I am using java.net.URL to connect to it, but I am getting following Exception:
javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
java.security.cert.CertPathValidatorException: The certificate issued by L=XXXXXXXXX, EMAILADDRESS=xyz dot abc at defmail dot com, CN=XXX CIO, OU=XXXXXX, O=XXXXXX, ST=XXXXXXXXX, C=XX is not trusted; internal cause is:
java.security.cert.CertPathValidatorException: Certificate chaining error
Note: I have hidden few details
Can any one help me out in resolving this issue.
If not via java.net.URL, Is there any way to connet to an HTTPS server?