Cuestion many certificate in many hosts - same domain


#1

Hello.
I have several subdomains on a single computer (server1). I want get the SSL certificate. On another computer (server 2) I have other subdomains of the same domain that had on the server 1. Within a month server1 will move to another team and would like to keep that certificate.
I wanted to know if I get just as certificates on a single computer with multiple subdomains?
Also if on the same computer I can have several certificates?
And when I can make migration continue to have the certificates.
Thank you very much


#2

You can do whichever option you prefer. To answer your specific questions

certificates on a single computer with multiple subdomains?

Yes, that’s perfectly possible.

if on the same computer I can have several certificates?

Yes

when I can make migration continue to have the certificates

Yes, you can continue to have the certificates on 2 different computers.


#3

for multiple domain
certbot-auto --apache -d example.com -d price.example.com auto.example.com car.example.com

Is correct?

Thanks


#4

You need a “-d” for each domain

certbot-auto --apache -d example.com -d price.example.com -d auto.example.com -d car.example.com


#5

Another question.
I think on a server certificate with a subdomain price.example.com
certbot-auto --apache -d example.com -d price.example.com

Then over time I think another certificate with subdomain auto.example.com
certbot-auto --apache -d example.com -d auto.example.com

You can do so, or should be done all at once.
certbot-auto --apache -d example.com price.example.com -d auto.example.com -d car.example.com

Thanks


#6

Ideally, do it all correctly the first time :wink:

If you want to add domains to a certificate then use the --expand flag

see https://certbot.eff.org/docs/using.html#re-running-certbot


#7

There was no documentation found.
Thanks.


#8

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