File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Sockets and Internet Protocols
Overriding the Security Certificate
Joined: Jun 22, 2006
Feb 10, 2009 06:11:31
I am trying to connect to a dummy site with ssl. This site is setup for
. Right now no valid security certificate is associated with this site.
httpsURL = "https://www.site.com/";
URL myurl = new URL(httpsURL);
When I try to execute the above code I get Invalid Certificate as the exception message. Is there any way to override the security certificate settings for HttpsURLConnections?
Thanks in Advance
It is sorta covered in the
JavaRanch Style Guide
subject: Overriding the Security Certificate
Problem in httpsConnection
HTTPS Certificate Requests
Servlets and SSL
HTTPS and Java
certificate format for cacerts
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014