You will need to perform the certificate generation action on the server with the IP you specified in your DNS A Record
.
or
If that is not possible you can also execute the certbot
command with the --manuel
flag. (Official Docs)
$ sudo certbot certonly --manual
# ...
# ... Asked for domain name and IP logging
# ...
-------------------------------------------------------------------------------
Please deploy a DNS TXT record under the name
_acme-challenge.<your-domain> with the following value:
5TyIfZh7Q38VnQuUvsIWJt0QffSJvCnHNOnlEuRim66
Before continuing, verify the record is deployed.
-------------------------------------------------------------------------------
Press Enter to Continue
Now here you will need to create a new DNS TXT
record with the value displayed. (In this case its 2DYIfZh7Q38VnQuUvsIWJt0QffSJvCnHNOnlEuRim66
) And wait a few minutes before pressing enter since the deployment will take some time.
Don't delete the record afterwards, otherwise renewing will not work!
Now press enter and it should see sometime like this:
Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/<your-domain>/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/<your-domain>/privkey.pem
Your cert will expire on xxxx-xx-xx. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew *all* of your certificates, run
"certbot renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
And now your certificates will be laying in the folder /etc/letsencrypt/live/<your-domain>/
.
Explanation on how the "HTTP challenge" works