Skip to content

Commit 62538e2

Browse files
authored
Merge pull request linode#519 from piradmin/patch-1
Update ssl-apache2-debian-ubuntu.md
2 parents 14be511 + 78a32a6 commit 62538e2

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

docs/security/ssl/ssl-apache2-debian-ubuntu.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,31 @@ This guide assumes that you are running Apache2.4 or higher on Debian 8 or Ubunt
3030
- If hosting multiple websites with commercial SSL certificates on the same IP address, use the [SNI](https://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI) extension of TLS. SNI is accepted by most modern web browsers. If you expect to receive connections from clients running legacy browsers (Like Internet Explorer for Windows XP), you will need to [contact support](/docs/platform/support) to request an additional IP address.
3131

3232

33-
##Get the CA Root Certificate
33+
##Get the CA Root Certificate and Applicable Intermediate Certificates
3434

35-
{: .note }
35+
{: .note}
36+
>
3637
> If you're using a self-signed certificate, skip this step.
3738
38-
Download the root certificate for the provider that issued your commercial certificate before you can begin using it. You may obtain the root certs for various providers from these sites:
39+
Download the root certificate and any applicable intermediate certificates for the provider that issued your commercial certificate before you can begin using it. You may obtain the root certs for various providers from these sites:
3940

4041
- [Verisign](https://knowledge.verisign.com/support/ssl-certificates-support/index.html)
4142
- [Thawte](http://www.thawte.com/roots/index.html)
4243
- [Globalsign](https://support.globalsign.com/customer/portal/articles/1426602-globalsign-root-certificates)
4344
- [Comodo](https://support.comodo.com/index.php?_m=downloads&_a=view&parentcategoryid=1&pcid=0&nav=0)
4445
- [StartSSL](http://www.startssl.com/certs/)
4546

46-
Most providers will provide a root certificate file as either a .cer or .pem file. Save the provided root certificate in `/etc/ssl/localcerts`.
47+
Most providers will provide a root certificate file as either a .cer or .pem file. Save the provided root certificate and applicable intermediate certificates in separate files in `/usr/share/ca-certificates/mozilla`. If the file for a certificate already exists there, replace the content of the file with the provided file's content if different.
48+
49+
Update certificate trust store:
50+
51+
sudo update-ca-certificates
52+
53+
This updates system hooks and the main ca-certificate.crt file located in `/etc/ssl/certs`.
4754

4855
## Configure Apache to use the SSL Certificate
4956

50-
1. Edit the virtual host configuration files located in `/etc/apache2/sites-available`, to provide the certificate file paths. For each virtual host, replicate the configuration shown below. Replace any mentions of `example.com` with your own domain. You will also need to ensure that the `SSLCACertificateFile` value is configured to point to the CA root certificate downloaded in the previous step:
57+
1. Edit the virtual host configuration files located in `/etc/apache2/sites-available`, to provide the certificate file paths. For each virtual host, replicate the configuration shown below. Replace any mentions of `example.com` with your own domain. You will also need to ensure that the `SSLCACertificateFile` value is configured to point to the ca-certificates.crt file updated in the previous step:
5158

5259
{: .file-excerpt }
5360
Apache virtual hosting file
@@ -56,7 +63,7 @@ Most providers will provide a root certificate file as either a .cer or .pem fil
5663
SSLEngine On
5764
SSLCertificateFile /etc/ssl/localcerts/www.example.com.crt
5865
SSLCertificateKeyFile /etc/ssl/localcerts/www.example.com.key
59-
SSLCACertificateFile /etc/ssl/localcerts/ca.pem # If using a self-signed certificate, omit this line
66+
SSLCACertificateFile /etc/ssl/localcerts/ca-certificates.crt # If using a self-signed certificate, omit this line
6067

6168
ServerAdmin info@example.com
6269
ServerName www.example.com
@@ -74,4 +81,10 @@ Most providers will provide a root certificate file as either a .cer or .pem fil
7481

7582
service apache2 restart
7683

84+
(If troubleshooting problems, a reboot may be required.)
85+
86+
{: .note}
87+
>
88+
> Your installation can appear to be correct in some browsers while not actually being correct, so test your installation using the test page at your certificate issuer's website. Alternately you can run `openssl s_client -CApath /etc/ssl/certs/ -connect example.com:443` and check for errors.
89+
7790
You should now be able to visit your site with SSL enabled.

0 commit comments

Comments
 (0)