• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

HTTPS问题"Failed to renew certificate with error: HTTPSConnectionPool"解决办法 ...

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

问题描述:

我们使用certbot的https秘钥生成服务,创建了https网站。不过在使用”certbot renew”命令更新https秘钥时遇到如下问题,

Tue Dec 28 14:13:02 CST 2021=> certbot renew…

/usr/lib/python2.7/site-packages/OpenSSL/crypto.py:14: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.

  from cryptography import utils, x509

Failed to renew certificate xxx.com with error: HTTPSConnectionPool(host=’acme-v02.api.letsencrypt.org’, port=443): Max retries exceeded with url: /directory (Caused by SSLError(SSLError(“bad handshake: Error([(‘SSL routines’, ‘tls_process_server_certificate’, ‘certificate verify failed’)],)”,),))

All renewals failed. The following certificates could not be renewed:

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

1 renew failure(s), 0 parse failure(s)

格式有点乱,问题的截图如下:

这个问题不太常见,在google/baidu一顿猛搜没有找到合适的答案。

后来经过不断反复尝试,发现一个简单命令可以解决问题。

解决方案:

使用命令”yum install ca-certificates”, 安装相关的组件,然后重新执行certbot renew即可。

注意:我的服务器是centos操作系统,用yum这个安装命令。其他的系统可用”apt install ca-certificates”等。

执行”yum install ca-certificates”命令后,安装的package如下

以上。


鲜花

握手

雷人

路过

鸡蛋
专题导读
上一篇:
通货膨胀的本质【好文精选】发布时间:2022-05-14
下一篇:
Rust编程语言被大厂选择的理由发布时间:2022-05-14
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap