How to install Let’s Encrypt on DirectAdmin

Since version 1.5, DirectAdmin has added Let’s Encrypt to their control panel. With Let’s Enrypt you can add SSL Certificates to your website completely free of charge.

To set up Let’s Encrypt on DirectAdmin, you must first have version 1.5 installed.

# /usr/local/directadmin/directadmin v Version: DirectAdmin v.1.50.0

By default, Let’s Encrypt is disabled within DirectAdmin, with the following command we check that

# /usr/local/directadmin/directadmin c | grep letsencrypt= letsencrypt=0

Turn on Let’s Encrypt in DirectAdmin

# echo “letsencrypt=1” >> /usr/local/directadmin/conf/directadmin.conf

And restart DirectAdmin

# Service DirectAdmin Restart

Check if Let’s Encrypt is now switched on

# /usr/local/directadmin/directadmin c | grep letsencrypt= letsencrypt=1


By default, a user with SSL must have their own IP address. Adding SNI skips this line.

# echo “enable_ssl_sni=1” >> /usr/local/directadmin/conf/directadmin.conf # service directadmin restart

As a last command, you have to save the web-configs. You can do this with the following commands
# cd /usr/local/directadmin/custombuild#./build update#./build rewrite_confs

Leave a Reply

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