读书人

在公司内下android源代码出现server c

发布时间: 2012-05-29 12:16:00 作者: rapoo

在公司内下android源代码出现server certificate verification failed的情况
我是用如下命令去下rowboat的ICS源代码:

$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

$ repo init -u https://android.googlesource.com/platform/manifest -b master
$ repo sync

公司有代理服务器出去,已经设置代理服务器可以上网,但是,当我用curt,或repo init的时候,都会出现

Get https://android.googlesource.com/tools/repo
error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://android.googlesource.com/tools/repo/info/refs

fatal: HTTP request failed

我用我的电脑在家下,可以正常下载,难道是代理服务器的设置问题?但是,也不应该说ssl证书校验错误啊?我比了一下两台电脑的ca-certificates.crt文件,都一样的!十分困惑,求解!!!

[解决办法]
刚验证了下,是电脑时间的问题。更新下电脑时间就ok了。
[解决办法]
会续传
如果用代理服务器,别忘了
$ export HTTP_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>
$ export HTTPS_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>

读书人网 >Android

热点推荐