Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • 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: Connection has been shutdown: version mismatch, client is SSLv3

Please help me on this.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!