Create certificate with certbot without changing DNS record

I will transfer a site from a host server to other server and I wolud like to create and install the SSL certificate first, I migrated my site but still figuring out some changes to the site, database is ready, etc., but I would like to change the DNS record to point the new server once certificate is installed. Is it possible? How do I do it?

====================

My domain is:

I ran this command:

It produced this output:

Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Waiting for verification...
Challenge failed for domain www.cchomeoffice.com
Challenge failed for domain cchomeoffice.com
http-01 challenge for www.cchomeoffice.com
http-01 challenge for cchomeoffice.com
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:

My web server is (include version): OpenLIteSpeed WS

The operating system my web server runs on is (include version): Ubuntu 18.04

I can login to a root shell on my machine (yes or no, or I don't know): yes

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

certbot 0.40.0

Using HTTP authentication, you would have to get a cert where the IP is now (if you don't have one).
Then copy the cert to the new server and then change the IP in DNS.

Otherwise, you would have to use DNS authentication.
Which can obtain a cert from any IP.

6 Likes

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