返回顶部

Let's Encrypt续费证书异常报错解决

Let's Encrypt续费证书异常报错解决

在续费免费证书时出现错误,这里小记一下。

现象

复制代码
#certbot certonly --webroot -w /usr/share/nginx/html -d gh.wqyfchina.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for gh.wqyfchina.com

Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: gh.wqyfchina.com
Type: unauthorized
Detail: 61.xx.xx.214: Invalid response from http://gh.wqyfchina.com/.well-known/acme-challenge/xxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxx: 502

Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.

Some challenges have failed.Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbotwith -v for more details.
复制代码

 

 

分析

根据报错信息可以定位到 /.well-known的配置有问题检查Nginx location的 /.well-known配置正确后再次续订成功。

解决

检查下面localtion配置确认可以访问到

       # Load configuration files for the default server block.
          location /.well-known {
                  index index.html;
          }  

 

posted @   九尾cat  阅读(649)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库
· 上周热点回顾(2.17-2.23)
历史上的今天:
2020-06-13 centos8编译安装httpd
点击右上角即可分享
微信分享提示

目录导航