1) Login to your DirectAdmin account.
2)Go to Domain setup and select the domain
3)Search SSL Certificates
4)Click on the first tab Free & automatic certificate from Let’s Encrypt
5)Select the addresses for which you want SSL certificates. In most cases, you will want to secure domain.com, www.domain.com, and mail.domain.com.
6)Click the SAVE button. The SSLs will be installed and you will be redirected to a page where you will see the details. A confirmation message will be displayed:
LetsEncrypt request successful for:
domain.com
mail.domain.com
www.domain.com
7). The option Force SSL with https redirect is important to automate things. It means whenever a user browses your site with HTTP, he/she will get redirected to HTTPS. Make sure you tick this option. Once you tick it and click on Save besides it
In this way, you can install an SSL certificate for a domain in DirectAdmin using Let’s Encrypt.