I had a server using DDNS ‘oldserver.asuscomm.com’ and had LE working great with auto renewals.
However this DDNS was configured and maintained by my router, which has been replaced, causing me to need a new servername and new certs.
I’ve reconfigured the server to use ‘newserver.duckdns.org’ which works externally for http, but need help getting the old certs replaced using the new servername for https.
Can someone point me in the right direction here? I’m not sure if I need to delete the old certs and start over, or just rerun the
certbot-auto renew command with special flags to override the old server name with the new one. Appreciate any help!
There is no certbot-auto command to do what you need in one step.
If you will no longer be using the oldserver name, then delete the oldserver cert:
and follow the prompts.
If you want to use the newserver name, then add the newserver name cert:
<insert here whatever certbot command previously worked for you>
And just change the oldserver name to the newserver name.
Thank you. I discovered it was necessary to first create the new cert using
certbot-auto --apache -d newserver.duckdns.org
It then proceeded to tell me which vhost file was in use so I could go update the ServerName. It then configured the new cert and I was able to then delete the old cert.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.