• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bypass the JVM Certificate Check

 
Amit Siinngghh
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic