This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Security and the fly likes Bypass the JVM Certificate Check Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Bypass the JVM Certificate Check" Watch "Bypass the JVM Certificate Check" New topic

Bypass the JVM Certificate Check

Amit Siinngghh

Joined: Jun 19, 2004
Posts: 12
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.

Ralf Hauser

Joined: Jan 09, 2005
Posts: 1
have a look at

Securely and spam-free via:
I agree. Here's the link:
subject: Bypass the JVM Certificate Check
It's not a secret anymore!