Let's encrypt: Allow alternative hostnames in the global server certificate

nielsh

Verified User
Joined
May 15, 2015
Messages
48
As mentioned here, according to this article Let's Encrypt can now be used to set the server certificate automatically for proftpd, exim, dovecot, DirectAdmin and Apache (and I assume also nginx). For the global certificate, the following command has to be used, where your.hostname.com matches the hostname from the servername variable in the directadmin.conf:
Code:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request your.hostname.com 4096

It would be an awesome feature if we could modify this certificate so it also includes other domains. Such as mail.your.hostname.com or mailserver.your.hostname.com, ftp.your.hostname.com, etc... I think the command could be as such:
Code:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request global your.hostname.com mail.hostname.com ftp.hostname.com 4096

And of course for a domain (a normal cert/user mode) ->
Code:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request website mysite.com www.mysite.com subdir.mysite.com 4096

for example... Of course for global there can only be one, and for website it has to exist in DA itself (added as a vhost)

- Niels
 
Hello Niels,

That's a good request. I'm in as well.
One moment requires a correction, alternative names should be comma separated, otherwise it will bring issues

Code:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request website,mysite.com,www.mysite.com,subdir.mysite.com 4096
 
Back
Top