为 Tomcat 编写自定义 SSL 上下文
我最终在 Tomcat 中设置了 SSL 及其默认上下文实现。现在,如果有人知道请告诉我如何为 Tomcat 编写自定义 SSLContext。我可以使用 Bean 创建 SSLServer 套接字并将它们安装到 Tomcat 吗?.. 我想通过这些套接字发送和接收对象。我可以指定 Tomcat 来控制这些套接字吗? 我可以提供自定义随机数、信任库和密钥管理器来进行 SSL 初始化吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看一下 http://tomcat.apache.org/tomcat -6.0-doc/config/http.html#SSL_Support。具体来说,
trustManagerClassName
(至少用于处理客户端证书)。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).您可以从此页面查找示例
SSLImplementation
并根据您的需求进行调整:http://code.google.com/p/jsslutils/wiki/ApacheTomcatUsageYou could look for sample
SSLImplementation
s and adapt them to your needs from this page: http://code.google.com/p/jsslutils/wiki/ApacheTomcatUsage