How to add a let's Encrypt SSL Certificate to a subdomain

Joined
Nov 18, 2020
Messages
2
Hello,

I already have a purchased SSL certificate for my domain. And now I want to add an SSL certificate to my subdomain too.
But I do not understand how to do it. I have read these instructions: https://site-helper.com/evo/ssl.php#letsencrypt

But still do not understand. As you can see from the screenshot below, it only seems possible to select one "alternative" -

"Free & automatic certificate from Let's Encrypt"

"Paste a pre-generated certificate and key"

Very grateful for answers.
Sincerely, Linus
 

Attachments

  • skärmdump 1.png
    skärmdump 1.png
    110.8 KB · Views: 497
When you bought the certificate, you would've needed to add the required sub-domains to it too as well as the common name, then it's the case of "Paste a pre-generated certificate and key" given to you by the vendor.
 
Hello,

I already have a purchased SSL certificate for my domain. And now I want to add an SSL certificate to my subdomain too.
But I do not understand how to do it. I have read these instructions: https://site-helper.com/evo/ssl.php#letsencrypt

But still do not understand. As you can see from the screenshot below, it only seems possible to select one "alternative" -

"Free & automatic certificate from Let's Encrypt"

"Paste a pre-generated certificate and key"

Very grateful for answers.
Sincerely, Linus
I thought I'd try testing a request for an SSL for a test subdomain only. But it failed with the following:

+ echo 'Domain does not exist on the system. Unable to find sub.domain.tld in /etc/virtual/domainowners, and domain is not set as hostname (servername) in DirectAdmin configuration. Exiting...'


I then added the subdomain to the /etc/virtual/domainowners file ***just to test!***, and the request proceeded, however, I wouldn't recommend this method as there is no telling what problems may ensue. Instead, you might try to move the subdomain to its own account, and then it might work so that you could have a paid ssl on the main domain and a free LE ssl on the subdomain.

You can test and debug with the following command (replace SUB.DOMAIN.TLD with your subdomain):

staging=yes bash -x /usr/local/directadmin/scripts/letsencrypt.sh request_single SUB.DOMAIN.TLD

Hope this helps!
 
Back
Top