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
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
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
I agree. Here's the link:
subject: Overriding the Security Certificate
HTTPS Certificate Requests
HTTPS and Java
certificate format for cacerts
Problem in httpsConnection
Servlets and SSL
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015