imvain2
imvain2

Reputation: 15847

AWS Linux 2 - Lets Encrypt Multi Domain

I have already successfully installed certbot and have a working digital certificate. I was wondering how do I go about adding domain names to the certificate or do I need to recreate the certificate again?

I don't want to mess up the existing certificate. I haven't tried running this code yet I want to verify the process before I continue. I tried searching this and Google and my results were kind of confusing.

sudo certbot –apache -d mydomain.xyz -d mydomain2.xyz -d www.mydomain.xyz

Upvotes: 1

Views: 541

Answers (1)

John Hanley
John Hanley

Reputation: 81386

SSL certificates cannot be modified once issued. They can be replaced with new certificates.

If you run the identical or modified certbot command, your existing certificate will not be modified or deleted. The certbot command will create a new certificate and store the certificate under a different name. Certbot stores certificates and additional files under the directory tree /etc/letsencrypt. You can archive/backup those files. Look at the archive and live folders.

Typically, your webserver will use symbolic links to point to the Let's Encrypt folder instead of copying the certificate to an Apache/Nginx folder.

Upvotes: 3

Related Questions