2016-11-17 89 views
6

此命令:Letsencrypt如何使用--preferred-挑戰

$ letsencrypt certonly --manual --preferred-challenges dns --email [email protected] --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: []) 

爲什麼我得到th錯誤?

回答

7

找到了答案,雖然網站指出letsencryptcertbot是一樣的。似乎並非如此。

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

的伎倆