Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Linux

Code Block
languagebash
 $JAVA$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore pathToKeystoreFile

E.g.

Code Block
languagebash
 $JAVAsudo mkdir /opt/tomcat/secure
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore /opt/tomcat/secure/keystore
sudo chown -R tomcat:tomcat /opt/tomcat/secure
sudo chmod 500 /opt/tomcat/secure
sudo chmod 400 /opt/tomcat/secure/keystore


Warning

Ensure that you create your keystore in a location that is only accessible to privileged users

...

To use a certificate from a certificate authority, following follow instructions in the standard tomcat documentation, e.g. https://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.html

 

 

 , under section Installing a Certificate from a Certificate Authority