Fetching existing cert with certbot on another server

Certbot is working fine on Ubuntu Server1 in standalone mode just as I want. However, I need the exact same certificate+key on Server2.

Is there a option in certbot, so I could run it on Server2 also, but it only would fetch the current cert + key?

I'd hate to setup scp/rsync between the servers, but rather let certbot handle it from LE if there is such an option.

No, not that exactly. If you run Certbot again you will get a different certificate and key

You could use a --deploy-hook with your original Certbot request that would copy the resulting key and cert to somewhere else.

That would only run each time a new cert was issued. Maybe easier than some other file sync.

2 Likes