質問 :CentOS Stream 8にCertbotをインストールするためのガイドに従いました。ただし、certbot --apache
コマンドが失敗し、「要求されたApacheプラグインがインストールされていないようです」というエラーメッセージが表示されます ‘。 –サティシュ。
# certbot --apache Saving debug log to /var/log/letsencrypt/letsencrypt.log The requested apache plugin does not appear to be installed
CentOSにCertbotapacheプラグインをインストールします
ノートこのチュートリアルは、CertbotがCentOS Stream 8にすでにインストールされていることを前提としています。まだインストールされていない場合は、先に読む前にまずインストールする必要があります。
エラーメッセージは、Certbotにapacheプラグインをインストールする必要があることを明確に示しています。 ApacheとCertboxがインストールされていますが、証明書を取得してApacheWebサーバーに自動的にインストールするにはcertbotapacheプラグインが必要です。
certbotプラグインのリスト:
# certbot plugins - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * standalone Description: Spin up a temporary webserver Interfaces: Authenticator, Plugin Entry point: standalone = certbot._internal.plugins.standalone:Authenticator * webroot Description: Place files in webroot directory Interfaces: Authenticator, Plugin Entry point: webroot = certbot._internal.plugins.webroot:Authenticator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
上記の出力は、Apacheプラグインがインストールされていないことを確認しており、以下に示すようにプラグインをインストールする必要があります。
certbotapacheプラグインをインストールします
# dnf install python3-certbot-apache :::::::::::::::::::::::::::::::: Installed: python3-augeas-0.5.0-12.el8.noarch python3-certbot-apache-1.22.0-1.el8.noarch Complete!
プラグインが正しくインストールされているかどうかを確認してください。
# certbot plugins - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * apache Description: Apache Web Server plugin Interfaces: Installer, Authenticator, Plugin Entry point: apache = certbot_apache._internal.entrypoint:ENTRYPOINT * standalone Description: Spin up a temporary webserver Interfaces: Authenticator, Plugin Entry point: standalone = certbot._internal.plugins.standalone:Authenticator * webroot Description: Place files in webroot directory Interfaces: Authenticator, Plugin Entry point: webroot = certbot._internal.plugins.webroot:Authenticator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
これでプラグインがインストールされ、証明書を取得してApacheWebサーバーにインストールする準備が整いました。
#certbot --apache
それでおしまい! Let'sEncrypt証明書の詳細をご覧ください。