I finally setup the SSL in Tomcat with its default context implementation. Now, if someone knows please tell me how to write a custom SSLContext for Tomcat. Can i use the Bean for creating SSLServer Sockets and mounting them to Tomcat?.. I want to send and receive Objects through these sockets. Can I assign Tomcat to take control over these sockets? Can I provide custom random,truststore and Keymanagers for SSL initialization?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Take a look at http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#SSL_Support. Specifically, trustManagerClassName
(at least for handling client certificates).
回答2:
You could look for sample SSLImplementation
s and adapt them to your needs from this page: http://code.google.com/p/jsslutils/wiki/ApacheTomcatUsage