Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change base domain name for Lets Encrypt SSL certificate

I have used Let's Encrypt to allow me to set up SSL/HTTPS on my server.

The issue is that I run a number of sub-domains too, which I included on the initial install, but looking back now - the certificate details show that it was issued to one of my sub-domains.

I'm wanting to change this to my base domain, but I'm just not sure how to do this.

I have tried running letsencrypt-auto --apache -d example.me -d www.example.me -d mysql.example.me

This went through the process but did not change anything, as the certs are already issued.

How can I change the certificates now, or reissue them so that they are issued to my base domain?

like image 721
James Avatar asked May 10 '16 06:05

James


People also ask

Can you change the domain of an SSL certificate?

Changing the domain name for your SSL certificate is not possible. If you need an SSL for a different domain name, the only option is to have a brand new SSL installed.

Do you need a domain name for lets Encrypt?

You definitely will need a domain name in order to use Let's Encrypt, but you might be able to get a name through Synology automatically as a subdomain of synology.me , which is one thing that a lot of users have done; could you check with Synology's support or documentation about that possibility?

How do I change my DNS certificate name?

Select Change the site that your certificate protects. Select Move your certificate to one of your hosted domains, and then select the domain name you want to use. Select Change to a different domain and enter the common name you want to use for the certificate. Select Add Change.

How do I add a domain to my SSL certificate?

In your CertCentral account, in the left main menu, go Certificates > Domains. On the Domains page, select New Domain. In the box, enter the domain name the certificates will secure. In the dropdown, select the organization you want to assign the domain to.


1 Answers

You can simply force renewal:

./certbot --apache -d example.me -d www.example.me -d mysql.example.me --force-renewal

Reference: https://community.letsencrypt.org/t/change-base-domain-name-for-lets-encrypt-ssl-certificate-in-certbot/16955/2

like image 163
divieira Avatar answered Sep 30 '22 05:09

divieira