Question

No valid IP address found for domain when trying to get SSL certificate?

Posted August 30, 2020 201 views
NginxUbuntuSecurityUbuntu 20.04

As I was following the tutorial found here: [https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04](http://) in order to get my SSL certificate.
On step 4 I am asked to run the following command sudo certbot --nginx -d example.com -d www.example.com with my domains which are working, I keep getting the following error: No valid IP addresses found for m.ca (my domain). I waited the 48 hours as instructed by Google domains after changing name servers and keep getting the same issue.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi,

Is it really domain m.ca ? I tried few whois lookup web sites and got the same result - domain has not got an owner. In such case, there is no chance to get a certificate for it.
But, if you put m.ca just as an example of your domain, then find out what https://letsdebug.net/ says when you enter your actual domain there.

  • Sorry, the domain is meraha.ca

    • Hi @ahsam,

      As mentioned in the Prerequisites section of the tutorial How To Secure Nginx with Let’s Encrypt on Ubuntu 20.04, you must create two DNS records for your domain meraha.ca:

      • An A record with meraha.ca pointing to your server’s public IP address.
      • An A record with www.meraha.ca pointing to your server’s public IP address.

      I see that you have only created an A record with www.meraha.ca but not meraha.ca. You must create another A record with meraha.ca as well. This document has detailed information to help you. Note: because meraha.ca is an apex domain, enter the @ symbol in the HOSTNAME field.

      After that, run this command to obtain your SSL certificate: sudo certbot --nginx -d meraha.ca -d www.meraha.ca

      by Brian Boucheron
      Let's Encrypt is a Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. It simplifies the process by providing a software client, Certbot, that attempts to automate most (if not all) of the required steps. In this tutorial, you will use Certbot to obtain a free SSL certificate for Nginx on Ubuntu 20.04, and set up your certificate to renew automatically.
Submit an Answer