code.google.com certificate error: certificate is for www.google.com
Posted on 2014-11-19 08:52 蝈蝈俊 阅读(751) 评论(0) 编辑 收藏 举报有时候我们会碰到下面错误:code.google.com certificate error: certificate is for www.google.com,类似如下:
D:\>go get code.google.com/p/go-charset
# cd .; hg clone -U https://code.google.com/p/go-charset d:\mycodes\golang\src\code.google.com\p\go-charset
abort: code.google.com certificate error: certificate is for www.google.com
(configure hostfingerprint a9:89:3c:56:04:8b:0f:2c:84:6c:41:06:92:73:5a:92:e9:8e
:17:ad or use --insecure to connect insecurely)
package code.google.com/p/go-charset: exit status 255
解决方法:
http://www.cnblogs.com/slider/archive/2012/03/06/2381448.html
改用下面命令下载:
hg clone http://code.google.com/p/go-charset
我们这里不走 https, 改走 http 就可以解决这个问题。
我这里由于把所有google的域名,都通过一个特殊的ip访问,所以 升级 Mercurial 工具到最新版本,并不能解决这个问题。
D:\>hg version
Mercurial Distributed SCM (version 3.1.2)
(see http://mercurial.selenic.com for more information)
Copyright (C) 2005-2014 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
D:\>hg version
分布式软件配置管理工具 - 水银 (版本 3.2)
(see http://mercurial.selenic.com for more information)
Copyright (C) 2005-2014 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 记一次.NET内存居高不下排查解决与启示