Hello all,
I need to get information through a
java program from a Site which has a expired certificate. The site is using SSL and I checked the certificate, which has expired few months back.
Since the JVM does not trust the certificate it gives me this exception
SEVERE: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Is there a way to tell the JVM to ignore the expired certifiactes or not to check the validity of the certificate at all.
Thanks,
Amit