New cname added in digital ocean and want to install ssl for this domain

Hi Sirs,

I just want to install Let's encrypt ssl on new CNAME that I just added on digital ocean server.

E.g my cname is insights.example.com. The main domain is already install SSL. I just want to install only this cname domain. Please help me which command do I need to run.

Thanks.

It would help folks answer your question if they knew what command you originally ran to get your existing certificate.

3 Likes

Hi rmbolger,

Normally I just run

sudo certbot --apache -d example.com -d www.example.com

but I just created the new cname in digital ocean server and I just want to install ssl for this domain only. E.g insights.example.com

Thanks.

1 Like

Step #1: Have a working HTTP site [based on the use of HTTP-01 authentication]
Can the Internet reach http://insights.example.com?

Step#2: Run your normal certbot command for that FQDN.

Step#3: Reload/Restart Apache

Step#4: Take the rest of the day off - you won!

3 Likes

Hi ig305,

Can the Internet reach http://insights.example.com? >> This one works for non ssl

Can I only install ssl for this domain by using normal command that I usually used.

Thanks.

1 Like

Step#2 could be:
sudo certbot --apache -d insights.example.com
OR
sudo certbot certonly -d insights.example.com
[this method would require TLS file creation]
OR
[other valid subcommands and maybe some additional steps]

3 Likes

Thanks rg305.

Have a nice day!!!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.