【问题标题】:certbot not renewing certificatescertbot 不更新证书
【发布时间】:2019-05-20 15:34:43
【问题描述】:

我有一个 api.mydomain.com 形式的域,其中包含我正在尝试续订的 Letsencrypt 证书。

root@prod-app-1:/home/ninesalt# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
  Certificate Name: api.mydomain.com
    Domains: api.mydomain.com
    Expiry Date: 2019-06-17 11:25:52+00:00 (VALID: 27 days)
    Certificate Path: /etc/letsencrypt/live/api.mydomain.com/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/api.mydomain.com/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

但是,当我尝试使用 certbot renew 更新它时,我收到了这个错误:

Attempting to renew cert (api.mydomain.com) from /etc/letsencrypt/renewal/api.mydomain.com.conf produced an unexpected error: The manual plugin is not working; there may be problems with your existing configuration.
The error was: PluginError('An authentication script must be provided with --manual-auth-hook when using the manual plugin non-interactively.',). Skipping.
All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/api.mydomain.com/fullchain.pem (failure)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/api.mydomain.com/fullchain.pem (failure)

【问题讨论】:

    标签: ssl lets-encrypt certbot


    【解决方案1】:

    使用--manual(且没有身份验证挂钩)创建的证书无法自动更新。

    这是因为它涉及您手动执行授权步骤,这不是 Certbot 可以在续订时自动重复的操作。

    通常您会希望使用手动验证器以外的验证器(例如 --apache、--nginx、--webroot、--standalone),以便 Certbot 可以执行自动更新。

    因此,您可能应该再次手动创建证书:

    certbot certonly --manual -d xxx.com
    

    【讨论】:

      猜你喜欢
      • 2021-01-19
      • 2019-08-17
      • 2017-02-23
      • 2017-10-28
      • 2021-06-12
      • 2019-09-10
      • 2018-08-13
      • 2022-10-02
      • 1970-01-01
      相关资源
      最近更新 更多