我试图通过下一个命令来更新我的letsencrypt证书:
./letsencrype-auto renew
但我收到此错误消息:
configuration file /etc/letsencrypt/renewal/domain.conf produced an unexpected error: Namespace object has no attribute 'standalone_supported_challenges'.
我如果尝试使用我创build我的证书的命令:
./letsencrypt-auto certonly --standalone-supported-challenges tls-sni-01 -d domain
我得到这个错误:
unrecognized arguments: --standalone-supported-challenges tls-sni-01
如果我尝试这个:
./letsencrypt-auto certonly --standalone -d domain
它说:
The requested standalone plugin does not appear to be installed.
我不知道现在如何更新我的证书。
根据他们的文档,自动更新function是在0.4.0版本中引入的,并没有使用上面的语法。 请参阅:
https://letsencrypt.org/getting-started/
从版本0.4.0开始,letsencrypt python客户端支持一个高级更新子命令,该命令尝试使用最初用于获取它们的相同设置续订所有证书。 你可以通过运行testing它:
letsencrypt更新 – 干运行
这将获得testing证书,并且不应该在您的系统上留下任何持久的变化。 如果你喜欢这个结果,你可以运行:
letsencrypt更新
如果要更新特定证书(而不是所有证书)或调整用于续订的确切参数,则可以使用letsencrypt certonly命令更新具有更具体设置控制的单个证书。 当使用letsencrypt certonly时,您可以一次获得单个证书的续订。 为您要更新的域所覆盖的每个域指定-d标志。
./letsencrype-auto renew这应该已经工作,应该更新所有证书。
试试这个更新一个域。
./letsencrypt-auto --apache -d example.com