Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bypass the JVM Certificate Check

Amit Siinngghh
Posts: 12
  • 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: PKIX path building failed: 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.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic