File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Bypass the JVM Certificate Check

Amit Siinngghh
Greenhorn

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: 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
Ralf Hauser
Greenhorn

Joined: Jan 09, 2005
Posts: 1
have a look at http://mail-archives.eu.apache.org/mod_mbox/jakarta-httpclient-user/200503.mbox/%3C20050302145528.GA26234@xbox.localdomain%3E

Securely and spam-free via:
https://www.privasphere.com/e.do?email=hauser@acm.org
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Bypass the JVM Certificate Check