Add another Domain (initial install via "./certbot-auto certonly")


#1

Ubuntu 16.04
Digital Ocean & Server Pilot

Hi

I need to add an extra domain to my existing certificate. I’ve read a few threads dealing with this question, but I’m being told that the way to do this will differ depending upon the command I used to create the initial certificate.

I used the Git clone:

git clone https://github.com/certbot/certbot
cd certbot
./certbot-auto certonly

Then I just followed the prompts, I entered the webroot and then manually typed in my domains.

Thank you.


#2

Hi @MikeThomasDev,

You can run the same command again. The important thing to know is that you have to type all of the names that should be on the new certificate—not just the new name! If you omit some or all of the existing names, you’ll get a separate somewhat duplicative certificate that doesn’t replace the old one.

Certbot should then prompt you with a question about whether you want to expand the existing certificate, and you can tell it that yes, you do.

If you want a reminder about exactly what names are on the old certificate, you can run ./certbot-auto certificates.


#3

Thanks a bunch, it worked :smile: