How to install SSL on Apache2 for Ubuntu 14.04?

Posted October 17, 2014 22.3k views

I have purchased my certificate from Namecheap, and they gave me .crt and .ca-bundle

I’ve followed this tutorial:

But it doesn’t work, does anyone know why I still can’t access

At this point, I’ve gone through so many tutorials from DigitalOcean whether needed or not because the tech support always give me a tutorial link without knowing what my actual problem is.

Some of the modification I’ve made were from these tutorials:

  • the SAVE QUESTION button can’t be clicked.... can’t edit my question. Anyway just wanted to add:
    At this point, I’ve made many modifications to my files following the tutorials from DigitalOcean. There are some more modifications I made that were actually for Ubuntu 12.04. So, my files could be corrupted and I did not keep track of what changes I had made

  • Maybe post a few things:

    your website.conf
    your domain you are trying to get working
    where do you have the crt and ca bundle stored

    It is probably just simple config setting somewhere, but difficult to tell without more information.

  • Hi,

    the domain I’m trying to get working is
    I store,,, and in /etc/apache2/ssl/

    Here’s the current that is stored in /etc/apache2/sites-available :

    <VirtualHost *:80>
        DocumentRoot /var/www/
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
  • Looks like you got it working.

  • Show 2 more comments

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

The most common hang-up is configuration for and installation of the file containing the CA bundle, if your cert provider requires one (most of the cheaper ones do).

In most of my VirtualHost config sections I have something like:

    SSLEngine on
    SSLCertificateKeyFile /etc/ssl/private/
    SSLCertificateFile /etc/ssl/certs/www_somehostname_com.crt
    SSLCertificateChainFile /etc/ssl/certs/

In some of the comments on the DO tutorial you referenced you’ll see some discussion about this.

Generally though, the best place to look, after setting up the basics of SSL on your server, is to check the documentation provided by your specific cert provider. This will factor in whether they use a CA bundle or not and the naming scheme they use for the files. If you buy your cert through a reseller, check your order details (to get the actual type/company behind it) and then their knowledge base. They will generally link to the appropriate install instructions as long as you know your web server type (e.g. Apache + mod_ssl)–mod_ssl