I’m on centos 8.1 running
nginx version: nginx/1.18.0 and few weeks ago I’d generated a certificate for several domains, as a result certbot modified all my nginx files and the sites would be ssl certified, so far so good.
Thing is, I’ve realized i’d like to add staging box so i can test all these sites locally (vagrant boxes) and I’d like to recreate again properly the certificates so they’ll be using https as well locally… I’ve thought one possible way to do this would be modifiy all my nginx server blocks to get rid manually all the certbot metadata and once all of them would work ok locally I’ll reupload to the server all these nginx configs and I’d run certbot again… probably this is not the way right way to do this.
So, summing up, if you’ve got existing certbot certificates in your server and you overwrite all the existing nginx config files with a different set of domain names (local & remote ones), how would you proceed to authenticate all of them with certbot invalidating the previous certificates?
Does it make sense what I’m trying to accomplish here? Sorry but I’m a bit newbie on this area
Thanks in advance!