我正在尝试使用 certbot 更新最近过期的证书(原始证书也是通过 certbot 生成的)。但是,更新命令不起作用:
sudo ./certbot-auto renew --quiet --no-self-upgrade
Use of --agree-dev-preview is deprecated.
Use of --agree-dev-preview is deprecated.
Attempting to renew cert from /etc/letsencrypt/renewal/www.removed.com.conf produced an unexpected error: <Response [404]>. Skipping.
Attempting to renew cert from /etc/letsencrypt/renewal/www.removed.com-0001.conf produced an unexpected error: <Response [404]>. Skipping.
Attempting to renew cert from /etc/letsencrypt/renewal/removed.com.conf produced an unexpected error: <Response [404]>. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/www.removed.com/fullchain.pem (failure)
/etc/letsencrypt/live/www.removed.com-0001/fullchain.pem (failure)
/etc/letsencrypt/live/removed.com/fullchain.pem (failure)
certbot 日志具有以下输出:
Traceback (most recent call last):
File "/home/test/.local/share/letsencrypt/bin/letsencrypt", line 11, in <module>
sys.exit(main())
File "/home/test/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py", line 861, in main
args = cli.prepare_and_parse_args(plugins, cli_args)
File "/home/test/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/cli.py", line 1074, in prepare_and_parse_args
return helpful.parse_args()
File "/home/test/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/cli.py", line 551, in parse_args
self.set_test_server(parsed_args)
File "/home/test/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/cli.py", line 568, in set_test_server
" and ".join(conflicts)))
Error: --server value conflicts with --dry-run
有关解决此问题的任何想法?我尝试以 root 身份运行上述更新命令。我已经停止了 nginx,以防它干扰进程。