David

David Bolshoy wrote:
Hi all,

I seem to be stuck with a strange SSL problem. I am trying to open a client SSL 
connection from inside Turbine service.
I get the following error:
java.net.SocketException: Default SSL context init failed: null

The code is very simple:
  URL url = new URL(https://www.verisign.com);
  URLConnection connection = url.openConnection();

Are you sure https (note the 's') can be used with URLConnection?


This code works perfectly in a standalone sample app. I am running Blackdown JDK 1.4.1 
(on RH 8), so JSEE is already inside my classpath.
What is also strange, when I add -Djavax.net.debug=all , no debug output is ever seen! 
It seems like a classpath problem, but I am really not sure I have some other SSL 
implementation.

Is the sample app also a servlet, or something else? Maybe Tomcat is blocking with Catalina permissions.


Eric


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



Reply via email to