简体   繁体   English

无法访问github.com

[英]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.

相关问题 “无法访问'https://github.com/flutter/flutter.git/':无法连接到github.com端口8080:” - "Unable to access 'https://github.com/flutter/flutter.git/': Failed to connect to github.com port 8080:" 无法访问&#39;https://github.com/AFNetworking/AFNetworking.git/&#39;:与github.com:9847相关的未知SSL协议错误 - unable to access 'https://github.com/AFNetworking/AFNetworking.git/': Unknown SSL protocol error in connection to github.com:-9847 无法访问“ https://github.com/GladysProject/gladys/”:无法连接到github.com端口443:无主机路径 - unable to access 'https://github.com/GladysProject/gladys/': Failed to connect to github.com port 443: no route to host 推送失败:无法访问“ https://github.com/abc/xyz.git/”:无法解析主机:github.com - Push failed: unable to access 'https://github.com/abc/xyz.git/': Could not resolve host: github.com 无法连接到GitHub.com进行克隆 - Unable to Connect to GitHub.com For Cloning 无法安装 pod(致命:无法访问 &#39;https://github.com/CocoaPods/Specs.git/&#39;) - Cannot install a pod (fatal: unable to access 'https://github.com/CocoaPods/Specs.git/') 无法访问“https://github.com/Homebrew/brew/”:LibreSSL SSL_connect - Unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_connect Git Push失败:致命:无法访问与github.com有关的未知SSL协议错误:-9805 - Git Push failed: fatal: unable to access Unknown SSL protocol error in connection to github.com:-9805 致命:无法访问“ https://github.com/MyName/MyRepo.git/”:请求的URL返回错误:403 - fatal: unable to access 'https://github.com/MyName/MyRepo.git/': The requested URL returned error: 403 docker 内部出现致命错误:无法访问<url>无法解析主机:github.com</url> - Inside docker got error as fatal: unable to access <url> Could not resolve host: github.com
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM