Liferay Tomcat SSL Configuration: Keystore and SSLCertificateFile
Liferay Tomcat HTTPs Configuration Keystore and SSLCertificateFile Approaches Overview This article explains how to configure HTTPs/SSL for Liferay bundled with Tomcat, using two different approaches: “Keystore” approach - for the generated “self-signed” certificates; “SSLCertificateFile” approach - for certificates obtained externally. SSL Configuration with Keystore Use this approach, when you don’t have a real SSL certificate, but you need to enable the HTTPs for your Tomcat server (e.g. on a local machine or the development server). Generate keystore First, you need to generate a keystore with the keytool command: cd $JAVA_HOME/bin keytool -genkey -alias ALIAS -keyalg RSA keystore PATH_TO_KEYSTORE /.keystore ALIAS - alias for you certificate; PATH_TO_KEYSTORE - path to the directory, where .keystore will be created Export keystore: keytool -export -alias ALIAS -keystore PATH_TO_KEYSTORE /.keystore -file server.crt Import keystore: keytool -import -alias ALIAS -f...