Webroot 设置的 Certbot 身份验证器错误

Jon*_*inz 4 lets-encrypt certbot

我正在尝试使用 certbot 和 --webroot 设置获取 SSL 证书。我当前的命令是:

sudo certbot certonly --webroot -w <path> -d <URL> -d <*.URL>
Run Code Online (Sandbox Code Playgroud)

每次运行该命令时,我都会收到此错误:

Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. You may need to use an authenticator plugin that can do challenges over DNS.
Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. You may need to use an authenticator plugin that can do challenges over DNS.
Run Code Online (Sandbox Code Playgroud)

我尝试了我发现的每一个类似的命令。请分享一些帮助。

我正在使用带有最新 certbot 版本的 ubuntu 18。我也尝试过 certbot-auto

Jon*_*inz 11

我发现:通过http验证(webroot)不可能获得通配符(<*.url>)。

但通过 DNS 质询(参考)是可能的。

以下是手动/DNS 质询通配符证书请求的示例命令:

sudo certbot certonly --manual -d *.<domain> -d <domain> --agree-tos --no-bootstrap --manual-public-ip-logging-ok --preferred-challenges dns-01 --server acme-v02.api.letsencrypt.org/directory
Run Code Online (Sandbox Code Playgroud)