I'm having a problem with using SSL from inside a servlet.  The same basic
code works from a standalone application, but not from inside a servlet.
Using JSSE1.0.1 when I create a java.net.URL object and then try to do an
OpenStream on that object I get a java.net.SocketException with the
exception text of "SSL implementation not available" out of
javax.net.ssl.DefaultSSLSocketFactory.createSocket.  After some playing
around I found out that if I create a SSLSocketFactory (by using
com.sun.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory()) and ask
for the supported and default cipher suites I get nothing from either call.
 If I make that call from the standalone app, I get 8 default cipher suites
and 14 supported cipher suites.

I'm assuming that I don't have something initialized in the JSSE
environment from the servlet world, but I can't figure out what is left to
initialize.  I've already got the following 2 calls in the code:

Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() );
System.getProperties().put("java.protocol.handler.pkgs",

"com.sun.net.ssl.internal.www.protocol");

and I don't get any complaints that the SSL classes can't be found.  Any
hints on what I'm missing?

--
Jeff Shelly
TouchNet Information Systems            [EMAIL PROTECTED]
15520 College Boulevard                 913-599-6699
Lenexa, KS 66219                        913-599-5588 (FAX)

___________________________________________________________________________
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

Reply via email to