How to install SSL on Apache2 for Ubuntu 14.04?

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:

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

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)