So I followed this tutorial(https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx.html) to install certbot and then I followed the instructions here(https://gist.github.com/belst/ff36c5f3883f7bf9b06c379d0a7bed9e) to make my certificate.
The command I used was:
sudo certbot certonly --webroot -w /var/www/letsencrypt -d your-domain.tld -d www.your-domain.tld
I changed www.your-domain.tld to be my domain. I ended up getting an error that said,
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
However, I checked to make sure that my domain name was entered correctly (mydomain.com and www.mydomain.com), and I have both DNS A and AAAA records set up for my domain. I have checked that my IP address of my droplet is correctly specified in these records. I’m not exactly sure what it is that is going wrong. Any help would be much appreciated. Thank you.
If you need anymore information please let me know.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
It looks like you have followed the right steps. To ensure that the DNS A/AAAA records are propagated correctly, you can use a DNS propagation tool like What’s My DNS to check the current status of your domain’s DNS record propagation.
If the DNS records are propagated correctly and you’re still encountering the error, make sure that:
If you have checked everything and still face the issue, you can check Certbot’s log file /var/log/letsencrypt/letsencrypt.log for detailed information about the error.
For more information on using Let’s Encrypt with Nginx on DigitalOcean, please refer to our tutorial: How To Secure Nginx with Let’s Encrypt on Ubuntu 20.04.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.