1

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?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Kris
  • 8,680
  • 4
  • 39
  • 67

2 Answers2

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).

ziesemer
  • 27,712
  • 8
  • 86
  • 94
  • +1, only available from 6.0.33 according to this: https://issues.apache.org/bugzilla/show_bug.cgi?id=48208 – Bruno Dec 28 '11 at 11:39
1

You could look for sample SSLImplementations and adapt them to your needs from this page: http://code.google.com/p/jsslutils/wiki/ApacheTomcatUsage

Bruno
  • 119,590
  • 31
  • 270
  • 376