https://knowledge.sakura.ad.jp/10534/
上記のサイトに従ってSSL証明書を発行しようとしたところ、ertbotコマンドを実行して証明書をインストールするときに
# certbot --apache -d example.com
ドメイン名を変えずにそのまま上記のコマンドを打ち込んでしまいました。
(Let's EncryptパートナーにEmailを公開します。したくない場合はNに。)にまでは進みYを押したところ
メールは届いたんですがその後以下のように出ました。
Starting new HTTPS connection (1): supporters.eff.org Obtaining a new certificate Performing the following challenges: http-01 challenge for example.com Cleaning up challenges Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80. IMPORTANT NOTES: - Your account credentials have been saved in your Certbot configuration directory at /etc/letsencrypt. You should make a secure backup of this folder now. This configuration directory will also contain certificates and private keys obtained by Certbot so making regular backups of this folder is ideal.
その後ドメイン名を自分のに変えてコマンドを打つと
Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator apache, Installer apache Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org Obtaining a new certificate Performing the following challenges: http-01 challenge for moto-moto08.com Cleaning up challenges Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.
と出てしまいます。
証明書の1を消したらいいのかと思い消すべき証明書を見ようとしたところ以下のように出ます。
これはexample.comに対しても証明書はまだ発行されていないということですか?
# certbot certificates Saving debug log to /var/log/letsencrypt/letsencrypt.log - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No certs found. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ポート80が解放されていないと出ているように読めたので
# firewall-cmd --list-all
をしたところ
services: ssh dhcpv6-client http https
の行があったので自分は解放されていると考えているのですがどこでつまってしまっているのか把握できないです。
分かりにくくてすみません、ここから自分のドメインでSSL証明書を取得するにはどうすればいいのでしょうか?
質問が2回目なので質問自体の読みにく点や出すべき情報があると指摘してい頂けるとありがたいです。
exampleの削除しようとすると以下のコードが出ます
# certbot delete --cert-name www.XXX.net Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80. -bash: Unable: command not found
#Certbotがドメインを管理していることをCAに証明するために現在必要なポート80でリッスンしている仮想ホストが見つかりません。ポート80に仮想ホストを追加してください。
-bash:使用不可:コマンドが見つかりません
google翻訳だと上記がでます、どういった意味なんでしょうか?
回答1件
あなたの回答
tips
プレビュー