I am trying to use certbot
(Let’s Encrypt) for a local domain.
In /etc/hosts
I have this.
127.0.0.1 myapp.whitebear.com
But when I run certbot
(Let’s Encrypt) shows this error.
How can I set the HTTPS for for a localhost?
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for myapp.whitebear.com
Waiting for verification...
Challenge failed for domain myapp.whitebear.com
http-01 challenge for myapp.whitebear.com
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: myapp.whitebear.com
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for myapp.whitebear.com