• Most COVID-19 rules have ended in New Zealand.
    • You must still isolate for 7 days if you have COVID-19.
    • You must wear a face mask in healthcare facilities, such as hospitals. International travellers will not need proof of COVID-19 vaccination.
    From 13 September 2022, to enter New Zealand, you do not need proof of vaccination.

Install SSL certificate on DirectAdmin hostname using Let's Encrypt

Andy

Administrator
Creative Team
User ID
1
Joined
7 Jan 2019
Messages
771
Reaction score
32
Points
28
Follow the tutorial down below to enhance your DirectAdmin Login Page with Let's Encrypt SSL certificate:
Bash:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request_single your.server-hostname.com 4096

The script above will also install the new cert/key/ca files in all respective global places for Apache, Dovecot, Exim, FTP, and DirectAdmin itself.
NOTE: The hostname value, eg: your.server-hostname.com must match the "servername" value set in the directadmin.conf, or it will not be in hostname mode, but User domain mode instead.

You must then turn on SSL in DirectAdmin and tell DirectAdmin to use the carootcert, as well as force the hostname for SSL:
Bash:
cd /usr/local/directadmin
./directadmin set ssl 1
./directadmin set carootcert /usr/local/directadmin/conf/carootcert.pem
./directadmin set ssl_redirect_host your.server-hostname.net
service directadmin restart

From now on, your DirectAdmin login page will be served in https 🔐
There you have it, all done 👍
Reference: https://help.directadmin.com/item.php?id=629
 
 Short URL:
Top