Enable Lets Encrypt SSL’s DirectAdmin

By default we have found that DirectAdmin does not usually come with Lets Encrypt enabled by default, this is the script and provider that will issue your automatic free SSL certificates for your hosting customers own own websites.

All of our servers are managed and we will do this task for you, however if you prefer to learn and wish to do the process yourself, here is the process you need to follow.

So to get started, lets login to SSH.

We need to edit the main configuration file.

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

We need to look for this line below and change it from 0 to 1.


Change this line to the below.


Then save the file by pressing ESC and typing “:wq” then enter.

Now let us restart the DirectAdmin process.

echo "action=directadmin&value=restart" >> /usr/local/directadmin/data/task.queue; /usr/local/directadmin/dataskq d2000

Now lets add the /.well-known Alias

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

The last thing to do is now install Lets encrypt, these are 3 separate commands however if you want to copy and paste it will run all 3 automatically.

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

That is now it! You will have successfully installed and enabled Lets Encrypt on your Direct Admin server, now if you login to a user account and go to SSL certificates you should see the option for a free automatic SSL.

You can find this under Account manager >> SSL Certificates

DirectAdmin SSL