JSSE 1.0.2 - no SSL Server Sockets ?
843811Sep 6 2001 — edited Sep 17 2001I am not having success getting JSSE 1.0.2 installed.
I used Visual Cafe to create a simple app with the
suggested test program from the JSSE 1.0.2 API User's Guide as follows:
import java.net.*;
import javax.net.ssl.*;
public class JSSE_install_check {
public static void main(String[] args) throws Exception {
SSLServerSocketFactory factory =
(SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
SSLServerSocket sslSocket =
(SSLServerSocket)factory.createServerSocket(5757);
String [] cipherSuites = sslSocket.getEnabledCipherSuites();
for (int i = 0; i < cipherSuites.length; i++) {
System.out.println("Cipher Suite " + i +
" = " + cipherSuites);
}
}
}
When I run this, the call to createServerSocket() throws a SocketException: no SSL Server Sockets.
I've registered the SunJSSE provider in the java.security file. I don't know what else I should be doing.
Any suggestions?
Thanks,
Neal