How to Install SSL Certificate on Apache2 Ubuntu Server

9 votes, average: 3.67 out of 59 votes, average: 3.67 out of 59 votes, average: 3.67 out of 59 votes, average: 3.67 out of 59 votes, average: 3.67 out of 5 (9 votes, average: 3.67 out of 5, rated)
Loading...

SSL Certificate Installation Guide on Ubuntu Server with Apache2

To create a Certificate Signing Request (CSR) for Ubuntu Server with the Apache2 panel, here is a quick CSR generation tool.

The following steps are based on the Ubuntu server version 12.x with Apache2.

Step 1: Copy/paste your SSL certificate files to the server.

Download your Intermediate Certificate (CertificateAuthority.cert) and SSL Certificate (Example_Your_Domain.cert) from your Certificate Authority (such as Symantec, GeoTrust, RapidSSL or Thawte).

Copy the Intermediate Certificate and SSL Certificate to the directory on the server where you will keep the certificate and key files. Make them readable by root only.

Step 2: Locate the Apache configuration file to editing.

Generally, in Ubuntu’s Apache the configuration file can be found in;

/etc/apache2/sites-enabled/example_your_domain

Note: If you are unable to find the configuration file on the folder location “sites-enabled” then you must run the following command

“sudo a2ensite example_your_domain”

Open the configuration file with a text editor and locate blocks that contain the Apache setting.

Step 3: Find the SSL block to configure.

If your intention to access your website using both “https” and “http” connections, then you need two separate files in /etc/apache2/sites-enabled/. One is for port 80 and another for port 443.

Step 4: Configure the block for the “SSL-enabled” website.

Here is an example of a virtual host configured for SSL certificate connection. The parts in bold letters must be configured to an established secure connection of HTTPS on Ubuntu Server with Apache2

DocumentRoot /var/www/
SSLEngine on
SSLCertificateFile /path/to/example _your _domain.crt
SSLCertificateKeyFile /path/to/your_private.key
SSLCertificateChainFile /path/to/CertificateAuthority.crt

Make your file names match your certificate files, such as;

  • SSLCertificateFile is your certificate file (eg. example_your_domain.crt).
  • SSLCertificateKeyFile is the key file that you generated while creation of the CSR.
  • SSLCertificateChainFile is the Certificate Authority intermediate certificate file (Symantec.crt)

Step 5: That’s it! Restart Apache Now!

Other Major Apache Resources for SSL Certificate Installation

 

Purchase SSL Certificate and Save Up to 82%

Secure a website in few minutes. Top leading Certificate Authorities offer the best SSL Certificates.

Shop for Cheap SSL Certificates