Re: JSSE

Jeff Nisewanger (Jeff.Nisewanger@Eng.Sun.COM)
Mon, 9 Aug 1999 16:18:30 -0700 (PDT)

Message-Id: <199908092320.QAA09939@shorter.eng.sun.com>
Date: Mon, 9 Aug 1999 16:18:30 -0700 (PDT)
From: Jeff Nisewanger <Jeff.Nisewanger@Eng.Sun.COM>
Subject: Re: JSSE
To: java-security@Sun.COM, cmminton@dstsystems.com

Sounds like the JSSE reference implementation security provider
is not being loaded correctly. There is an install document available
from the download page which talks about configuring the system
and security properties. The link is:

http://developer.java.sun.com/developer/earlyAccess/jsse/README.txt and
http://developer.java.sun.com/developer/earlyAccess/jsse/install.html.

Jeff


> From: "Craig Minton" <cmminton@dstsystems.com>
> To: <java-security@Sun.COM>
> Cc: <cmminton@dstsystems.com>
> Subject: JSSE
> Date: Mon, 9 Aug 1999 15:17:07 -0500
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> X-Priority: 3 (Normal)
> X-MSMail-Priority: Normal
> Importance: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
>
> 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
>