From: "Jim Carpenter" <jimc@sneezy.sri.com>
To: <java-security@java.sun.com>
Subject: Unrecognized SSL handshake
Date: Mon, 9 Aug 1999 11:06:16 -0700
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?
Any help would be appreciated.
Thanks,
Jim Carpenter
SRI International
jimc@systech.sri.com
650-859-2202