当前位置:网站首页>goproxy.io 证书过期
goproxy.io 证书过期
2022-08-09 09:27:00 【草明】
如果出现以下错误
x509: certificate has expired or is not yet valid: current time is after 2021-09-25t00:00:00z
里面明显 https
的网址被修改了, 例如 github.com
被改成了 https://goproxy.io/github.com
, 这是使用了 go
的代理.
排查问题:
- 重启电脑, 然后执行
go env | grep GOPROXY
. 应该有goproxy.io
- 查找配置, 找到配置了
GOPROXY
的地方, 修改值, 例如GOPROXY=https://goproxy.cn,direct
- ~/.zshrc
- /etc/profile
- ~/.config/go/env
- 重启电脑
有时候直接在命令行里面设置环境变量也没有用, 即使使用 go env
查看已经改了, 也不行, 所以第一点就是重启电脑.
边栏推荐
猜你喜欢
【百日行动】炎炎夏日安全不松懈 消防培训“加满”安全知识“油”
软件测试的流程规范有哪些?具体要怎么做?
Ontology development diary 04 - to try to understand some aspects of protege
.equals ==
Ovie map computer terminal and mobile terminal can not be used, is there any alternative map tool
字符串
unittest测试框架原理及测试流程解析,看完绝对有提升
软件测试分析流程及输出项包括哪些内容?
MySQL Checking and Filling Leaks (5) Unfamiliar Knowledge Points
列表
随机推荐
软件测试面试题目:请你列举几个物品的测试方法怎么说?
类 对象 属性 方法 类的成员
Understanding of PID control motor output as motor PWM duty cycle input
What are the basic concepts of performance testing?What knowledge do you need to master to perform performance testing?
软件测试个人求职简历该怎么写,模板在这里
命令行查询数据库
Ontology Development Diary 05-Strive to Understand SWRL (Part 2)
static_assert报错为什么?
seata处理分布式事务
AES/ECB/PKCS5Padding encryption and decryption
Environment build onnxruntime 】
1.线程简介
MySQL lock
Ontology Development Diary 03 - When debugging is in progress
Lecture 4 SVN
4.泛型和工具类
本体开发日记05-努力理解SWRL(Usage Suggestions)
Read file by byte and character_load configuration file
WAVE SUMMIT 2022深度学习开发者峰会
.equals ==