# RE: JSSE

Craig Minton (cmminton@dstsystems.com)
Tue, 10 Aug 1999 15:33:48 -0500

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jeff Nisewanger: "RE: JSSE"
- Previous message: Jeff Nisewanger: "Re: JSSE & HTTPS"

    From: "Craig Minton" <cmminton@dstsystems.com>

    To: <java-security@Sun.COM>

    Subject: RE: JSSE

    Date: Tue, 10 Aug 1999 15:33:48 -0500

    In-Reply-To: <862567C8.00808883.00@dstsmtp1.dstsystems.com>

Thank you for the quick reply. I now have this working for a direct
connection, but am running into problems when I try to go through a proxy.
I have set up the system properties of "proxySet", "proxyHost", and
"proxyPort', and the request property "Proxy-Authorization" with the
mime-encoded userid:password. The code works for all the non-SSL web pages
I've tried, but not SSL. Any ideas? Thanks! Here's the dump I'm
getting....

Error: Operation timed out: no further information
java.net.NoRouteToHostException: Operation timed out: no further information
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
at java.net.Socket.<init>(Socket.java:269)
at java.net.Socket.<init>(Socket.java:98)
at javax.net.ssl.SSLSocket.<init>([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.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-120198])
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:457)
at IPOWatch2.main(IPOWatch2.java:75)

> -----Original Message-----
> From: Jeff Nisewanger [mailto:Jeff.Nisewanger@Eng.Sun.COM]
> Sent: Monday, August 09, 1999 6:19 PM
> To: java-security@Sun.COM; cmminton@dstsystems.com
> Subject: Re: JSSE
>
>
>
>
>
> 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.con
> nect([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
> >
>
>
>

- Next message: Jeff Nisewanger: "RE: JSSE"
- Previous message: Jeff Nisewanger: "Re: JSSE & HTTPS"