请求的 Apache 插件似乎未安装

请求的 Apache 插件似乎未安装

我正在使用 certbot,但无法安装 apache 插件,我会分享我使用的命令:

# certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The requested apache plugin does not appear to be installed

然后我尝试使用以下命令安装它:

#dnf install certbot python3-certbot-apache
dnf install certbot python3-certbot-apache
Repository extras is listed more than once in the configuration
Repository fasttrack is listed more than once in the configuration
Last metadata expiration check: 0:38:45 ago on Sun 08 Oct 2023 06:17:31 PM -04.
Package certbot-1.22.0-1.el8.noarch is already installed.
Package python3-certbot-apache-1.22.0-1.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!

然后我检查插件是否已安装:

# certbot plugins
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* standalone
Description: Runs an HTTP server locally which serves the necessary validation
files under the /.well-known/acme-challenge/ request path. Suitable if there is
no HTTP server already running. HTTP challenge only (wildcards not supported).
Interfaces: Authenticator, Plugin
Entry point: EntryPoint(name='standalone',
value='certbot._internal.plugins.standalone:Authenticator',
group='certbot.plugins')

* webroot
Description: Saves the necessary validation files to a
.well-known/acme-challenge/ directory within the nominated webroot path. A
seperate HTTP server must be running and serving files from the webroot path.
HTTP challenge only (wildcards not supported).
Interfaces: Authenticator, Plugin
Entry point: EntryPoint(name='webroot',
value='certbot._internal.plugins.webroot:Authenticator',
group='certbot.plugins')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

但什么也没有……

# certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The requested apache plugin does not appear to be installed

我不知道还能做什么。

答案1

您可能需要安装 python-certbot-apache

基于 Redhat 的发行版:

yum install python-certbot-apache

基于 Debian 的发行版:

apt install python-certbot-apache

相关内容