我推送代碼到github回購時出現以下錯誤消息,昨天一切運行良好。無法訪問github.com
git push -u origin master
fatal: unable to access 'https://github.com/resumic/schema/': SSL certificate
problem: self signed certificate in certificate chain
我推送代碼到github回購時出現以下錯誤消息,昨天一切運行良好。無法訪問github.com
git push -u origin master
fatal: unable to access 'https://github.com/resumic/schema/': SSL certificate
problem: self signed certificate in certificate chain
那麼,某事或別人假裝爲你的GitHub。在瀏覽器中打開GitHub並檢查證書鏈(F12 →安全性)。
或者使用捲曲:
$ curl -vI https://github.com
* Trying 192.30.253.113...
* Connected to github.com (192.30.253.113) port 443 (#0)
...
* Server certificate:
* subject: businessCategory=Private Organization; jurisdictionC=US; jurisdictionST=Delaware; serialNumber=5157550; street=88 Colin P Kelly, Jr Street; postalCode=94107; C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=github.com
* start date: Mar 10 00:00:00 2016 GMT
* expire date: May 17 12:00:00 2018 GMT
* subjectAltName: host "github.com" matched cert's "github.com"
* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 Extended Validation Server CA
* SSL certificate verify ok.
使用curl -kvI
如果你得到一個證書驗證錯誤(-k
的「握手無論如何,即使證書不驗證」)。
或OpenSSL的:
$ openssl s_client -connect github.com:443 -servername github.com
CONNECTED(00000003)
depth=2 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert High Assurance EV Root CA
verify return:1
depth=1 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert SHA2 Extended Validation Server CA
verify return:1
depth=0 businessCategory = Private Organization, jurisdictionC = US, jurisdictionST = Delaware, serialNumber = 5157550, street = "88 Colin P Kelly, Jr Street", postalCode = 94107, C = US, ST = California, L = San Francisco, O = "GitHub, Inc.", CN = github.com
verify return:1
---
Certificate chain
0 s:/businessCategory=Private Organization/jurisdictionC=US/jurisdictionST=Delaware/serialNumber=5157550/street=88 Colin P Kelly, Jr Street/postalCode=94107/C=US/ST=California/L=San Francisco/O=GitHub, Inc./CN=github.com
i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA
1 s:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA
i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV Root CA
在寫這時的鏈是:
根證書指紋:
5f b7 ee 06 33 e2 59 db ad 0c 4c 9a e6 d3 8f 1a 61 c7 dc 25
EV葉證書:
7e 2f 3a 4f 8f e8 fa 8a 57 30 ae ca 02 96 96 63 7e 98 6f 3f
您之前是否已將任何更改推入回購? – AndroidStorm
是昨天只 – ss22ever
您是否登錄到WiFi強制門戶? –