error: server certificate verification failed 解決方案

來源:互聯網
上載者:User

標籤:linux

晚上使用更新源之後使用了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 my problem. My university was blocking ntp packets, which was preventing my system from updating time. Once I configured the university ntp servers things were working again. Thanks for this tip! –  Kyle Mar 9 at 16: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‘

error: server certificate verification failed 解決方案

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.