letsencrypt的https证书续期遭遇raw.githubusercontent.com无法访问

星期日, 2019-12-08 | Author: Lee | linux | 2,812 views

今天看到邮件提醒letsencrypt的https的证书快要到期了,想想自己设置了自动续期怎么还会有邮件提醒呢?

登录服务器查看,发现续期的脚本执行有错…

访问:https://raw.githubusercontent.com/certbot/certbot/v1.0.0/letsencrypt-auto-source/letsencrypt-auto

出现了无法连接,拒绝访问,解决之,重试脚本,升级完成.

0. ping raw.githubusercontent.com 获取的IP地址:151.101.108.133已经无法访问,连接重置了

1.访问ipaddress.com,或者使用ip lookup 工具获得相关域名的ip地址

当前查询:https://githubusercontent.com.ipaddress.com/raw.githubusercontent.com 的IP地址为:

IP Address 199.232.28.133

2.hosts添加指向此IP地址

sudo vi /etc/hosts
 
199.232.28.133 raw.githubusercontent.com

3.重新执行续期脚本,等待升级即可.

Tags:

文章作者: Lee

本文地址: https://www.pomelolee.com/1966.html

除非注明,Pomelo Lee文章均为原创,转载请以链接形式标明本文地址

No comments yet.

Leave a comment

Search

文章分类

Links

Meta