Hi all,
I'm really having a bad time trying to establish a connection to a
resource that is in a https server.
If I try the following code:
URL url = new URL("https://www.myhttpsserver/myresource");
it throws a MalformedURLException because it doesn´t recognice the https
as a valid protocol.
I've heard that installing JSSE1.0.2 and adding a few lines to my code
could help, but I have not been able to do so. The code I´ve tried is:
System.setProperty("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
java.security.Security.addProvider( new
com.sun.net.ssl.internal.ssl.Provider() );
URL url = new URL("https://www.myhttpsserver/myresource");
Do any of you have any further ideas?
Thanx,
Juan
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html