[英]Unable to access github.com
I am having the following error message while pushing the code to github repo,everything worked well yesterday. 在将代码推送到github repo时出现以下错误消息,昨天一切正常。
git push -u origin master
fatal: unable to access 'https://github.com/resumic/schema/': SSL certificate
problem: self signed certificate in certificate chain
Well, something or someone else is pretending to be GitHub for you. 好吧,某人或其他人伪装成您的GitHub。 Open GitHub in a browser and inspect the certificate chain (F12 → Security). 在浏览器中打开GitHub并检查证书链(F12→安全性)。
Or use curl: 或使用curl:
$ 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.
Use curl -kvI
if you're getting a cert validation error ( -k
for "Handshake anyway, even if the certs don't verify"). 如果遇到证书验证错误,请使用curl -kvI
(“- -k
代表握手,即使证书未验证”也是如此)。
or OpenSSL: 或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
The chain at the time of writing this is: 在撰写本文时,其链为:
Root cert fingerprint: 根证书指纹:
5f b7 ee 06 33 e2 59 db ad 0c 4c 9a e6 d3 8f 1a 61 c7 dc 25
EV leaf cert: EV叶子证书:
7e 2f 3a 4f 8f e8 fa 8a 57 30 ae ca 02 96 96 63 7e 98 6f 3f
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.