Installing an SSL certificate for your hostname using LetsEncrypt

As of DA 1.50.0, DA added a new feature that allows you to make use of LetsEncrypt, a tool offering free basic SSL certificates.


We've written the script in such a manner that you can also setup SSL for your hostname and all services in one simple command for your hostname: 
eg:

 

/usr/local/directadmin/scripts/letsencrypt.sh request_single your.hostname.com 4096

 

which will also install the new cert/key/ca files in all respective global places for apache, dovecot, exim, ftp, and DirectAdmin.
NOTE The hostname value, eg: your.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.

DirectAdmin should be protected with SSL in 1min when the command finished. If you wish to have non-SSL requests to be redirected to a specific URL, just do:

 

/usr/local/directadmin/directadmin set ssl_redirect_host your.hostname.com
service directadmin restart

 

PS: Remember to change your.hostname.com to your own server hostname.

 

Not sure how to do it, at MangoXchange is very simple, contact Support to do it for you Free.


Was this article helpful?

mood_bad Dislike 0
mood Like 6
visibility Views: 632