You need to add the following line to your code somewhere:

Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

The "java.protocol.handler.pkgs" property is only needed if you want to use https with java.net.URL.

I previously thought that addProvider() was not needed, but it seems that it is. We probably need to change this in documentation in a few places.

Mike

On Tuesday, February 4, 2003, at 02:39 AM, Tom Samplonius wrote:


I'm trying to access a https URL with a simple test problem. Upon
executing the program, I get:

java.net.SocketException: SSL implementation not available


I'm using jdk1.3.1. I've download JSSE, and put jsse.jar, jcert.jar,
and jnet.jar into my classpath. I've also tried adding
"-D-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol" to
the jvm startup. That doesn't change anthing.

What is the proper way to get JSSE working?


Tom



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to