Load a custom certificate to DRP.
Before you start
mkdir -p /gateway/apache2
chmod 777 /gateway/apache2/ or chmod -R o=rwx
-
Copy the folders named ssl and sites-available from the running
docker.
docker cp <container_name>:/etc/apache2/ssl /gateway/apache2/ docker cp <container_name>:/etc/apache2/sites-available /gateway/apache2/
- Upload the certificate, key, and the intermediate certificate (if available) to /gateway/apache2/ssl/.
- Modify the /gateway/apache2/sites-available/https.conf, and change the following lines under SSLEngine.
- Edit SSLCertificateFile and SSLCertificateKeyFile to point to the new certificate and key. (By default, it points to the self-signed certificate.)
-
Please note that the certificate must be of .crt format. Docker may not
start if you use any other format like .cer.
SSLCertificateFile /etc/apache2/ssl/<cert_name>.crt
SSLCertificateKeyFile /etc/apache2/ssl/<cert_name>.key
#SSLCACertificateFile /etc/apache2/ssl/<intermediate_cert_name>.crt
- Optional: If you have added an intermediate certificate in Step 5, then remove the pound sign "#" from "#SSLCACertificateFile" statement.