Self-signed certificates are useful in cases where you require encryption but do not need to verify the website identity. Using a self-signed certificate instead of one signed by a Certificate Authority (CA), users gaining initial access to the site may get prompted that the site is untrusted and may have to perform several steps to "accept" the certificate before they can access the site. This usually only occurs the first time they access the site.
You may prefer to obtain and install a certificate from a Certificate Authority; if so, refer to the Tomcat documentation for installing a certificate from a CA.
To generate and store a self-signed certificate
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA |
or
keystorePass="<password value>"
Related topics
© 2012 Adaptive Computing