Certbot が apache2 エラーを発生させます。

Certbot が apache2 エラーを発生させます。

このガイドを使用してSSLを設定しようとしています。 https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-22-04

ただし、次のエラーが発生します。

serv_ivan@964889-cd87180:~$ sudo certbot --apache
[sudo] password for serv_ivan: 
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which names would you like to activate HTTPS for?

1: vardidze.ru
2: www.vardidze.ru

Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 
Requesting a certificate for vardidze.ru and www.vardidze.ru

Certbot failed to authenticate some domains (authenticator: apache). The Certificate       Authority reported these problems:
  Domain: vardidze.ru
  Type:   unauthorized
  Detail: 94.228.120.106: Invalid response from http://vardidze.ru/.well-known/acme-challenge/3_vZwseS0tgfCsIJYvlU91atg-lEkdzvQZ58W-rJH98: 403

Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

私のドメインが利用可能ですが:www.vardidze.ru

助けてください。

ベストアンサー1

「手動」セクションの最初の4段落で説明されているように、LetsEncryptソフトウェアから証明書を要求し、チャレンジを介してCertbotドメイン名の所有権を証明するために「手動モード」を選択したようです。httpこのCertbotドキュメントページ

httpチャレンジは、Webサーバーの所有者に、Certbotが検索するファイルをWebサーバーに配置するように要求します。ファイルの名前と内容はCertbotによって提供され、SSL証明書要求に固有です。 Certbotがこのファイルの内容を検索できる場合は、Webサーバーを所有して証明書を受け取る権限があることを証明します。

CertbotがWebサーバーからファイルを検索しようとすると、403エラーが発生します。ファイルとそのコンテンツをWebサーバーに追加し、Certbotに再試行するように依頼してください。または、dnsチャレンジ(DNSにTXTレコードを追加する場合)を使用する場合は、vardidze.ruこの回答の前のマニュアルページに記載されているコマンドラインオプションを使用してCertbotにそれを表示します。

おすすめ記事