estoy tratando de usarcertbot
(Vamos a cifrar) para un dominio local.
En /etc/hosts
tengo esto.
127.0.0.1 myapp.whitebear.com
Pero cuando ejecuto certbot
(Let's Encrypt) muestra este error.
¿Cómo puedo configurar HTTPS para un host local?
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
Respuesta1
Para utilizar los certificados Let's Encrypt, su dominio debe existir en el sistema DNS. Las anulaciones locales como /etc/hosts
no funcionarán.