JSSE

Craig Minton (cmminton@dstsystems.com)
Mon, 9 Aug 1999 15:17:07 -0500

From: "Craig Minton" <cmminton@dstsystems.com>
To: <java-security@Sun.COM>
Subject: JSSE
Date: Mon, 9 Aug 1999 15:17:07 -0500

I am trying to use the early acces JSSE reference implementation to retrieve
a web page that is
SSL secured. I am using the following code to try to retrieve the page:

String IPOURL = new String( "https://mysecuredpage.html" );
System.setProperty( "java.protocol.handler.pkgs",
"com/sun/net/ssl/internal/www/protocol" );
URL url = new URL( IPOURL );
BufferedReader br = new BufferedReader( new
nputStreamReader( url.openStream( ) ) );

I had to set the system property because it could not find it otherwise.
Does it not follow the
default set out by the URL class in JDK2? When I try to run the above code,
I get the following:

Error: SSL implementation not available
java.net.SocketException: SSL implementation not available
at
javax.net.ssl.DefaultSSLSocketFactory.createSocket([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.www.https.HttpsClient.doConnect([DashoPro-V1.2-1201
98])
at sun.net.www.http.HttpClient.openServer(HttpClient.java:320)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:260)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:265)
at
com.sun.net.ssl.internal.www.https.HttpsClient.<init>([DashoPro-V1.2-120198]
)
at
com.sun.net.ssl.internal.www.https.HttpsClient.New([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect([Dash
oPro-V1.2-20198])
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Compiled Code)
at java.net.URL.openStream(URL.java:818)
at IPOWatch2.main(Compiled Code)

Can you please tell me what is going on? Thanks!

Craig Minton
cmminton@dstsystems.com