File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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!