Categories
Development Ubuntu 16.04 Server

How to Install a brought SSL Certificate on Ubuntu 16.04 Apache Server

Here are the terminal commands and steps to install a brought SSL Certificate on Ubuntu 16.04 Apache server (not LetsEncrypt).

sudo mkdir /etc/apache2/ssl
sudo mkdir /etc/apache2/ssl/private
sudo chmod 755 /etc/apache2/ssl
sudo chmod 710 /etc/apache2/ssl/private
sudo chown -R root:root /etc/apache2/ssl/
sudo chown -R root:ssl-cert /etc/apache2/ssl/private/

Now, place your SSL public certificate(s) in /etc/apache2/ssl and your SSL private key(s) in /etc/apache2/ssl/private

sudo chmod 644 /etc/apache2/ssl/*.crt
sudo chmod 640 /etc/apache2/ssl/private/*.key

In /etc/apache2/sites-available update the file paths for SSLCertificateFile, SSLCertificateKeyFile, and SSLCertificateChainFile.

sudo a2enmod ssl
service apache2 restart

Useful Resources:

  • https://serverfault.com/questions/259302/best-location-for-ssl-certificate-and-private-keys-on-ubuntu
  • https://www.digicert.com/csr-ssl-installation/ubuntu-server-with-apache2-openssl.htm

By Andy Corby

Being quick to learn, I am a confident team member, who is responsible and easy to get on with; the kind of hardworking person who is always thinking ahead and using initiative.

Experience in a range of direct and digital marketing techniques. Google AdWords Certified and I hold a BA(Hons) Business & Finance degree (2:1).

Key skills include: Google AdWords PPC (aka Google Ads); search engine optimisation (SEO); LinkedIn lead generation; web design; user interface (UI) and user experience (UX) design; software development; server management; and development experience with: HTML, CSS, PHP, MySQL, JavaScript, JQuery, AJAX, BootStrap, PHPMyAdmin, PhantomJS, CasperJS, VPS/VPC(Ubuntu 16.04 LTS).

Special interest in maximising productivity through: agile working, productivity tools, levaging time, and automating set processes.

Leave a Reply

Your email address will not be published. Required fields are marked *

fifteen + 14 =