晚上使用更新源之后使用了git 命令,但是报错
error: server certificate verification failed
在stackoverflow 上有一页专门解答:server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none ,针对不同情况,,里面有很多的解决方案。 我的属于系统时间错误,和下面这个问题相同:
Another cause of this problem might be that your clock might be off. Certificates are time sensitive.
This was :51
问题重现
****@****:~$ date -RSat, 18 Jan 2014 06:11:27 +0800****@****:~$ git clone https://github.com/bugmeout/CPluslab.gitCloning into ‘CPluslab’…error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://github.com/bugmeout/CPluslab.git/info/refsfatal: HTTP request failed
由于不能够和时间服务器通信,用命令修改了时间之后,一切ok。
sudo date -s ’22:36:00 2015-06-19′
每一天都不可追回,所以更要珍惜每一寸光阴,