Skip to content

Instantly share code, notes, and snippets.

@FoxNeo
Last active April 9, 2021 13:42
Show Gist options
  • Select an option

  • Save FoxNeo/11ec83c7107e7c3a4bcd45e53d6f894b to your computer and use it in GitHub Desktop.

Select an option

Save FoxNeo/11ec83c7107e7c3a4bcd45e53d6f894b to your computer and use it in GitHub Desktop.

Tomcat TLS with pem cetificates config

  1. edit server.xml
  2. add the cert files to conf/ folder
  3. add the following code to server.xml
<Connector port="443" SSLEnabled="true" secure="true" scheme="https">
  <SSLHostConfig>
    <Certificate certificateFile="conf/cert.pem"
                 certificateKeyFile="conf/cert-key.pem" />
  </SSLHostConfig>
</Connector>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment