How to enable Let's Encrypt in DirectAdmin

Modified on Wed, 13 Oct, 2021 at 8:58 PM

As of version 1.50.0, DirectAdmin supports letsencrypt. Using this free initiative, it is possible to secure your domain without purchasing an expensive certificate. The benefit of DirectAdmin's implementation is that it automatically updates the certificate. The certificates from letsencrypt are only valid for 90 days, and after 85 days DirectAdmin tries to renew this automatically.

How to enable Let's Encrypt in DirectAdmin

  1. To enable letsencrypt, make sure that you are at least running version 1.50.0.
  2. Open /usr/local/directadmin/conf/directadmin.conf and add the following:
  3. According to the official instructions, you need to run to following to enable verification of the domain. In our case, this did not work so we have added in addition step 4.
    cd /usr/local/directadmin/custombuild
    ./build update
    ./build rewrite_confs
  4. Open /etc/httpd/conf/extra/httpd-alias.conf and check if the following line exists. If not, add the line and also add the line to /usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-alias.conf.
    Alias /.well-known "/var/www/html/.well-known"
  5. Restart Apache.
  6. Restart DirectAdmin to make sure that it is using the latest configuration.

Let's encrypt is now enabled for you and your clients. If you have disabled SSL by default for every user, click here to see how to enable SSL in DirectAdmin for every user.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article