Previously, ALM supported HTTP protocol only. However, for enhanced security and data protection, ALM now supports HTTPS protocol as default behavior. This protocol encrypts communications between the client and the server. It is highly recommended to use HTTPS as the default protocol to ensure data privacy and integrity. This topic explains the steps to configure HTTPS in ALM hosted on Apache Tomcat.
- A valid .p12 certificate (also called a PKCS12 certificate) provided by a trusted Certificate Authority (CA). A .p12 certificate contains both the public and private keys necessary for secure communication.
If you do not have a .p12 certificate, you can also generate a self-signed certificate for testing purposes. You can create a self-signed certificate using the following command:
```bash keytool -genkeypair -alias almssl -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore almcert.p12 -validity 365 - almssl: Alias for the certificate. - almcert.p12: The name of the generated .p12 file. - validity 365: Number of days the certificate will be valid for.
You will be prompted to provide a password and other details for the certificate.
After you have obtained a .p12 certificate, you can configure Apache Tomcat to use it for HTTPS. To configure HTTPS:
- Certificate Errors: If you encounter issues with your SSL certificate, ensure the certificate is correctly imported into the .p12 file and that the file path and password in server.xml are accurate.
- Port Conflicts: If port 8443 is already in use, modify the port attribute in the HTTPS connector configuration to use an available port.