HTTPS Tomcat configuration


/ Published in: XML
Save to your folder(s)

'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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.