• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple protocol support in a SSLServerSocket  RSS feed

sujit Mahapatra
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can an SSLServerSocket support multiple protocols, say TLSv1 and SSLv3, simultaneously?

I get my ServerSocket object as follows:
SSLContext sslc = SSLContext.getInstance("TLS");
ctx.init(AlreadyInitedKMFactory.getKeyManagers(), null, null);
SSLServerSocketFactory ssf = ctx.getServerSocketFactory();
SSLServerSocket sSock = ssf.createServerSocket(port);

The reason I want this is because I require my server to cater to clients communicating with any of these protocols. How can I achieve the same?
e.g. When I try to connect to this server from an SSLv3 client, I get the following exception:
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLProtocolException: version mismatch, client is SSLv3

Please help me on this.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!