Question

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: https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04

But it doesn’t work, does anyone know why I still can’t access https://mydomain.com?

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: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04 https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-with-a-free-signed-ssl-certificate-on-a-vps

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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/somehostname.com.key
    SSLCertificateFile /etc/ssl/certs/www_somehostname_com.crt
    SSLCertificateChainFile /etc/ssl/certs/somehostname.com.ca-bundle

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)

https://support.comodo.com/index.php?/Default/Knowledgebase/Article/View/637/37/certificate-installation-apache--mod_ssl