首页 > 解决方案 > 更新我的让我们加密证书时出错

问题描述

每当我尝试使用 cerbot 更新我的域证书时,我都会遇到错误消息。

这是一个运行 ubuntu 和 apache 的 linux 服务器,证书由 certbot 颁发,服务器没有控制面板,所以一切都是使用 ssh 完成的。

底部有错误消息的命令行响应:

Attempting to parse the version 0.32.0 renewal configuration file found at /etc/letsencrypt/renewal/mydomin.com.conf with version 0.31.0 of Certbot.

This might not work.

Cert is due for renewal, auto-renewing...

Plugins selected: Authenticator webroot, Installer None

Renewing an existing certificate

Performing the following challenges:

http-01 challenge for mydomin.com

http-01 challenge for www.mydomin.com

Cleaning up challenges

Attempting to renew cert (mydomin.com) from /etc/letsencrypt/renewal
/mydomin.com.conf produced an unexpected error: Missing command line flag or config entry for this setting:

Input the webroot for mydomin.com:. Skipping.

All renewal attempts failed. The following certs could not be renewed:

  /etc/letsencrypt/live/mydomin.com/fullchain.pem (failure)

标签: apachehttpscertificatelets-encrypt

解决方案


你可以在这里找到一些答案

快速检查您的 certbot 续订配置

[[webroot_map]] 部分必须是这样的

sub.domain.tld = /var/www/certbot

推荐阅读