%20%E3%81%AF%E3%83%AD%E3%83%BC%E3%82%AB%E3%83%AB%20%E3%83%89%E3%83%A1%E3%82%A4%E3%83%B3%20NXDOMAIN%20%E3%81%A7%20**.domain%20%E3%81%AE%20A%20%E3%82%92%E6%A4%9C%E7%B4%A2%E3%81%97%E3%81%BE%E3%81%99.png)
使用しようとしていますcertbot
(暗号化しましょう) をローカル ドメインにインストールします。
私は/etc/hosts
これを持っています。
127.0.0.1 myapp.whitebear.com
しかし、(Let's Encrypt)を実行するとcertbot
このエラーが表示されます。
ローカルホストに HTTPS を設定するにはどうすればよいですか?
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
答え1
Let's Encrypt 証明書を使用するには、ドメインが DNS システムに存在している必要があります。 などのローカルオーバーライドは/etc/hosts
機能しません。