How to install and activate Let’s Encrypt in DirectAdmin

We start by logging in to the server via SSH, if this does not work, request the SSH data from your hoster or check if you are on the blacklist.

As soon as we are logged in, we add

letsencrypt=1

in the file

 /usr/local/directadmin/conf/directadmin.conf

After this, add the aliases

cd /usr/local/directadmin/custombuild
./build rewrite_confs

Finally, we install the latest version of Let’s Encrypt

cd /usr/local/directadmin/custombuild
./build update
./build letsencrypt

All users on the server should now have the opportunity to request a free Let’s Encrypt certificate themselves. Keep in mind that Let’s Encrypt only lets you request a certificate a few times a day, if you exceed this limit you will get several error messages

If the application does not work, check this first:

  • Is both the @ record and the WWW facing the server
  • If your WWW is a CNAME, make sure it is really pointed to the main domain or an @
  • If you use CloudFlare, you need to set the SSL to flexible

Leave a Reply

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