How to generate a Letsencrypt certificate for the DirectAdmin server hostname

Modified on Wed, 13 Oct 2021 at 08:56 PM

With Let's Encrypt you can generate a free SSL certificate for your whole server: SMTP, POP3, IMAP, FTP, the webserver(s) and DirectAdmin is covered by this. First, you need to have Let's Encrypt enabled. Secondly, this only works for the server hostname.

  1. Navigate to the directory:
    cd /usr/local/directadmin/scripts
  2. Request the certificate:
    sh letsencrypt request
  3. Make sure that the following services are restarted, if installed:
    1. apache
    2. exim
    3. dovecot
    4. proftpd
    5. pureftpd
    6. nginx
  4. DirectAdmin will take care of regenerating the Let's Encrypt certificate.

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 atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article