【问题标题】:Certbot or Let’s Encrypt add excess ".com" to domainCertbot 或 Let's Encrypt 将多余的“.com”添加到域
【发布时间】:2020-12-03 12:05:45
【问题描述】:

我有多个域的服务器。 certbot 对所有这些都很好,除了一个。 让我们使用“blog.domain.staging.com”作为这个问题的例子。

certbot certonly -t -n --dry-run --agree-tos --renew-by-default --email "${LE_EMAIL}" --webroot -w /usr/share/nginx/html -d blog.domain.staging.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for blog.domain.staging.com
Using the webroot path /usr/share/nginx/html for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. blog.domain.staging.com (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching https://blog.domain.staging.com.com/.well-known/acme-challenge/YWnMAB2mDZFl4-tEO1BCrKc3vP6yeAL2JVZP-A-BRV4: Error getting validation data

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: blog.domain.staging.com
   Type:   connection
   Detail: Fetching
   https://blog.domain.staging.com.com/.well-known/acme-challenge/YWnMAB2mDZFl4-tEO1BCrKc3vP6yeAL2JVZP-A-BRV4:
   Error getting validation data

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address. Additionally, please check that
   your computer has a publicly routable IP address and that no
   firewalls are preventing the server from communicating with the
   client. If you're using the webroot plugin, you should also verify
   that you are serving files from the webroot path you provided.

您可以看到主机名有额外的“.com”,我不知道为什么以及如何解决这个问题。

【问题讨论】:

  • 你能显示你的配置吗?例如:sudo nginx -T

标签: nginx web server lets-encrypt certbot


【解决方案1】:

nginx 配置中有错字。从 http 到 https 的重定向链接带有附加的“.com”。这就是问题所在。

【讨论】:

    猜你喜欢
    • 2018-10-13
    • 2016-08-09
    • 1970-01-01
    • 2017-10-24
    • 2020-09-25
    • 2017-02-18
    • 1970-01-01
    • 2017-07-05
    • 2018-08-16
    相关资源
    最近更新 更多