【忘備録】Certbot(Let's)でドメイン認証
作成日:2023-07-11 21:11:18
最新更新日:0000-00-00 00:00:00
簡単さ!<BR>
次のコマンドを使うのだ!
sudo certbot certonly --manual -d DOMAIN_NAME_HERE.nhk --preferred-challenges dns
簡単だね!
そしたらこんなのが出る
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for DOMAIN_NAME_HERE.nhk
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please deploy a DNS TXT record under the name:
_acme-challenge.DOMAIN_NAME_HERE.nhk.
with the following value:
AHJAHJAHJAHJAHJAHJAHJAHAJaBaaaBABABABABAVAVAVAVAVAGyaaaaaaaShinuuuuuuu
Before continuing, verify the TXT record has been deployed. Depending on the DNS
provider, this may take some time, from a few seconds to multiple minutes. You can
check if it has finished deploying with aid of online tools, such as the Google
Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/_acme-challenge.DOMAIN_NAME_HERE.nhk.
Look for one or more bolded line(s) below the line ';ANSWER'. It should show the
value(s) you've just added.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press Enter to Continue
そしたら、書かれているとおりに「_acme-challenge.DOMAIN_NAME_HERE.nhk」というレコードを作る
TXTレコードね
んで中に「with the following value:」以降に書かれている謎の文字列を入れる
んで適応できたかnslockupでも使ってチェック
nslookup -type=TXT _acme-challenge.DOMAIN_NAME_HERE.nhk
設定できていたらおk!!!!!!