Posted By

sergheiistrati on 11/30/09


Tagged

tomcat


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


HTTPS Tomcat configuration


 / Published in: XML
 

'keytool' can be used to generate the certificate. keystore is setup for server certificate. truststore is setup for client certificate validation. To enable the client certificate validation 'clienAuth=true'.

Add the code to server.xml

  1. <Connector port="8443" minSpareThreads="5" maxSpareThreads="75"
  2. enableLookups="true" disableUploadTimeout="true"
  3. acceptCount="100" maxThreads="200"
  4. scheme="https" secure="true" SSLEnabled="true"
  5. keystoreType="PKCS12" keystoreFile="C:/keystore.p12" keystorePass="password"
  6. truststoreType="PKCS12" truststoreFile="C:/keystore.p12" truststorePass="password"
  7. clientAuth="true" sslProtocol="TLS"/>

Report this snippet  

You need to login to post a comment.