Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple protocol support in a SSLServerSocket

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: Connection has been shutdown: version mismatch, client is SSLv3

Please help me on this.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic