Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSSE 1.0.2 - no SSL Server Sockets ?

843811Sep 6 2001 — edited Sep 17 2001
I 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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 15 2001
Added on Sep 6 2001
5 comments
160 views