Hi Everyone. Let me start of by saying how much I appreciate everything the Let’s Encrypt community has done for encrypting the web for everyone!
I have the following situation I need some clarification on:
- I’m running a production site (old site) on a shared host with cpanel access. I’ve migrated to https and let’s encrypt a while ago and it works like a charm. It’s linked with my main domain, that has a good seo ranking, so I need to keep the domain and reroute it the new site.
- I’ve developed a new website on a VPS at GCP. I’ve made a subdomain to my main domain and DNS linked it to the development / staging site.
- My new site is now ready to go to production, which means I will change the DNS records to point to the IP address of the new VPS.
What I’m not sure how to do is deploy the let’s encrpyt certbot to include the main domain on my new VPS.
Do I first reroute the DNS and then deploy the certficate?
Do I fist issue a certficate for the staging subdomain, then reroute the DNS and then change the certificate?
Any help is much appreciated!