Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

How To Configure Let's Encrypt For Drupal & Virtualmin

Parent Feed: 

Let's Encrypt is taking over the world with its free SSL certificates, and I'm using it on ALL of my websites (including the one you're reading right now). But using it with Drupal & Virtualmin is not as easy as it should be, so today I'll show everyone how to make it work 100%. It took me a few hours of detective work to figure out the following two prerequisites that need to be taken care of before using Let's Encrypt:

#1. Apply a patch (https://www.drupal.org/node/2408321, #53) to Drupal 7 core. You can skip this step for Drupal 8, because it's already been committed.

Now all domains in Virtualmin except the default one will work with Let's Encrypt. For the default website ("Server Configuration" -> "Website Options" -> "Default website for IP address") to also work, the following needs to be taken care of:

#2. In your server, find the ssl.conf file (in my Linode server's CentOS 7, it would be /etc/httpd/conf.d/ssl.conf), back up the file just in case and delete the following code in its entirety:

Delete everything here, including the top & bottom. ;)

And that's it. Just restart your server, and Let's Encrypt should now work flawlessly with Drupal & Virtualmin. Welcome to the world of free SSL certificates! :D

P.S. As for a general guide on how to use Let's Encrypt in Virtualmin, look forward to another blog post in the near future. ;)

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web