Message-Id: <199908091824.LAA15839@shorter.eng.sun.com>
Date: Mon, 9 Aug 1999 11:22:28 -0700 (PDT)
From: Jeff Nisewanger <Jeff.Nisewanger@eng.sun.com>
Subject: Re: Unrecognized SSL handshake
To: java-security@java.sun.com, jimc@sneezy.sri.com
> I am having a problem with the recently released JSSE1.0 (Early Access).
> I am using JDK1.2.2 and have added the following line to my java.security
> file:
>
> "security.provider.2=com.sun.net.ssl.internal.ssl.Provider"
>
> I am also setting the following system property:
>
> java -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
>
> I have a simple test program that creates a URL, fetches the page and
> prints it out:
>
> try {
> //URL url = new URL("https://certs.netscape.com/client.html");
> //URL url = new URL("https://www.microsoft.com");
> URL url = new URL("https://trading28.schwab.com/trading/start");
> InputStream is = url.openStream();
> BufferedReader br = new BufferedReader(new InputStreamReader(is));
> LineNumberReader lnr = new LineNumberReader(br);
> String line = null;
> while ( (line = lnr.readLine()) != null)
> System.out.println(line);
>
> } catch (MalformedURLException e) {
> System.err.println("MalformedURLException: " + e.getMessage());
> } catch (SSLException e) {
> System.err.println("SSLException: " + e.getMessage());
> } catch (IOException e) {
> System.err.println("IOException: " + e.getMessage());
> }
>
> When I try the netscape or microsoft URL, the program works as expected.
> When I try the schwab site, the program throws an "SSLException:
> Unrecognized SSL handshake." What is causing the Unrecognized SSL
> handshake exception? How can I further diagnose the handshaking
> procedure. Am I missing a certificate? Am I missing some needed setup?
The underlying problem is that JSSE 1.0 EA implements SSL
version 3 and TLS version 1. It does not implement SSL version 2 which
is the only version of SSL supported by the Schwab web server
at https://trading28.schwab.com/. We will try to improve the exception
message.
Jeff