Let's Encrypt如何使用--preferred-challenges

15

这个命令:

$ letsencrypt certonly --manual --preferred-challenges dns --email foo@bar.com --domains test001.bar.com

输出:

letsencrypt: error: unrecognized arguments: --preferred-challenges dns

根据此文档:https://certbot.eff.org/docs/using.html#certbot-command-line-options

我发现:

  --preferred-challenges PREF_CHALLS
                        A sorted, comma delimited list of the preferred
                        challenge to use during authorization with the most
                        preferred challenge listed first (Eg, "dns" or "tls-
                        sni-01,http,dns"). Not all plugins support all
                        challenges. See
                        https://certbot.eff.org/docs/using.html#plugins for
                        details. ACME Challenges are versioned, but if you
                        pick "http" rather than "http-01", Certbot will select
                        the latest version automatically. (default: [])

为什么会出现这个错误?

1个回答

17

虽然该网站声称 letsencrypt certbot 是相同的,但我找到了答案,看起来并不是这样。

$ apt-get install letsencrypt
$ apt-get install python-pip
$ pip install --upgrade pip
$ pip install certbot
$ certbot certonly --manual --preferred-challenges dns --email foo@bar.com --domains test001.bar.com

起作用了


我相信我们大多数人都在这里是因为我们需要 DNS 挑战 :-D - imbr

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接