To configure SSL on your Apache server using a Comodo certificate, follow these steps:
- Edit the Apache Configuration File:
- Ensure the file is edited in a way that allows you to save changes.
- Enable SSL and Set Directives:
- Download and Install Certificates:
- Obtain the Comodo Root CA and Intermediate CA certificates from Comodo's SSL website.
- Place these files in
/etc/ssl/certs/.
- Test SSL Configuration:
- Access your site using HTTPS to ensure SSL is enabled and working properly.
Restart Apache:
sudo systemctl restart apache2
Specify TLS protocols to use modern versions:
SSLProtocol all -TLSv1_2:+TLSv1_3
Enable SSL in the VirtualHost block:
<VirtualHost *:80>
SSLEngine on
</VirtualHost>
Add or uncomment the following directives at the top of the configuration file:
SSLProxySetupExponentBundle 1
SSLCACertificateFile /etc/ssl/certs/root.crt
SSLPrivateKeyFile /etc/ssl/certs/intermediate.crt
Open the default configuration file with a text editor:
sudo nano /etc/apache2/sites-enabled/000-default.conf
