Add new subdomain to SSL issued by LetsEncrypt in DirectAdmin

mbsmt

Verified User
Joined
Jul 24, 2013
Messages
175
Location
Mashhad, Iran
Hi.
I've used new feature in DA version 1.50 to add a LetsEncrypt SSL on one of my hosted websites. Everything done fine and so easy.
But now I have to add new subdomain to my website. Up to now, https is working well on www and non-www URL on my website. But I could not find anything to add new subdomain to SSL in DA. I ran that feature again (after creating subdomain), but nothing new happened and when I go to subdomain.domain.com, I get invalid SSL error.

How can I add my subdomain to current SSL in DirectAdmin?
 
Any way of doing this from the GUI?

I too have just started testing the letsencrypt integration and am very impressed so far. Previously, I have "cheated" by using Cloudflare to provide an SSL front-end, but decided to try out the letsencrypt functionality

I successfully generated a certificate for www.mydomain.com and the process ran flawlessly and I could access my site over SSL. I then tried accessing https://sub.mydomain.com and as expected, I got a certificate error, so I went back to the DirectAdmin panel and created a new certificate for sub.mydomain.com and again the process worked and I could access https://sub.mydomain.com without getting a certificate error ,but I now get an error when accessing https://www.mydomain.com.

So it appears that each user account can only have one certificate. Having trawled through a couple of threads where I can see that it is possible to use the command line tools to do stuff, I understand that the letsencrypt tools can be used to create multiple certificates etc and I can see how/where the cert paths can be configured in apache, but I cannot figure out how this might be done from the admin panel

If it were myself alone who has a problem, then I would be happy to use the command line, but I have customers who are not tech savvy at all and if one of them decides to try and enable/use SSL with the letsencrypt option, I can foresee issues

So (how) can we use the new SSL options to easily generate and use distinct certificates for a domain and its subdomain(s)? If that is not possible, can we generate a wildcard certificate that covers the domain and all its subdomains?

Could the existing GUI plugin be used to add support the "Subject Alternative Name" specifier?
 
HI, i am facing same issue, is there any way to use lets encrypt for both domain and sub domain(When sub domain is added as main domain,) i can use command line too, however i fear that limit of 20 will be exhausted so i will try command after one week, till than kindly tell me any procedure to make it work, i will test it with other domain.

Regards
 
If your main domain.com is on another server or behind a CDN such as cloudflare, you can install let'sencrypt for subdomain through SSH,

first Update let's encrypt

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

In my case , I wanted to install ssl on mail.domain.com and my primary domain.com was on another server and behind clouldflare, obviously I couldn't install it via directadmin, so let's install it via ssh

cd /usr/local/directadmin/scripts

./letsencrypt.sh request mail.domain.com 4096

remember to clear browser's cache.
 
Back
Top