You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The revocation function is unable to check revocation for the certificate. #2471
I am running behind a corporation that self-signs its certificates, which means that I get this issue when I try to push any changes.
fatal: unable to access 'https://github.com/glenndevenish/[repo]/': schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
Version
GitHub Desktop version: 0.7.2
OS version: Microsoft Windows [Version 10.0.10586]
Steps to Reproduce
(You will probably be unable to reproduce since you have to be in the corporation, although any self-signing corp. might have the same issue)
Click publish branch
Error message pops up.
Expected behavior: Update to occur successfully
Actual behavior: Repo was created, but no files were created.
Reproduces how often: Every time.
Logs
2017-08-15T13:38:44.759Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.196s)
2017-08-15T13:38:44.761Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
fatal: unable to access 'https://github.com/glenndevenish/[repo].git/': schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
Additional Information
None.
Reacted by Rob Ryan, Miracle121, J. Brandon Johnson, Sergey and Alex Klaus
@glenndevenish the version of Git we're using in Desktop uses SChannel, which uses the OS to validate certificates and revocations. This error suggests something is meddling with the revocation step - is there some sort of firewall running locally that might be overriding the OS defaults?
We haven't gotten a response to the questions in our comment here. With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue.
Reacted by tioteath, Danny Chrismas, JackGrinningCat, MONSTEEEER, Andrew Gray and Mikhail
@shiftkey Sorry, I wasn't aware of your comment, for some reason! I managed to solve it myself though, by:
finding the keys used by the corporate firewall in the Windows key manager
converting them and merging them (as .pem)
Added the new key to git using the git for Windows command line (it would be nice if Github desktop had some 'advanced command line' for configuring git)
@glenndevenish Desktop has it's own system configuration but you can override just about everything in your global ~/.gitconfig using Git for Windows. Could you tell me more about what configuration values you changed to get this working?
@glenndevenish thanks for that. I'm curious why the use of Windows Certificate Store and SChannel here isn't working for your case, but I'm happy to close this out as resolved. Please comment if there is anything else to add.
@robertmryan you can verify your connections using openssl to see what certificate chain it does find:
$ openssl s_client -connect www.github.com:443
CONNECTED(00000006)
depth=1 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert SHA2 Extended Validation Server CA
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
0 s:/businessCategory=Private Organization/1.3.6.1.4.1.311.60.2.1.3=US/1.3.6.1.4.1.311.60.2.1.2=Delaware/serialNumber=5157550/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
---
Server certificate
-----BEGIN CERTIFICATE-----
...
Reacted by Rob Ryan, JackGrinningCat and sunny.ayyl
@shiftkey Thanks, that identified the offending certificate, namely a Kaspersky cert installed as part of their suite, and once I removed that and rebooted, I can now use git desktop. Thanks!
@ZYyiwanfuhao Thanks for providing that. I didn't really want to remove my antivirus' certificates, so a way to disable the "Self signed cert" warning is appreciated.
Dear Friends I've found a way out. Blame it on your AV Software. When I paused my AV software and ran the command:
curl -l https:/api.github.com/zen
from the prompt, it told me,
Speak like a human.
Any elegant solution that may be applied without the need to disable the AV software is welcome.
Activity
shiftkey commentedon Aug 16, 2017
@glenndevenish the version of Git we're using in Desktop uses SChannel, which uses the OS to validate certificates and revocations. This error suggests something is meddling with the revocation step - is there some sort of firewall running locally that might be overriding the OS defaults?
shiftkey commentedon Aug 27, 2017
@glenndevenish thank you for your issue!
We haven't gotten a response to the questions in our comment here. With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue.
glenndevenish commentedon Aug 29, 2017
@shiftkey Sorry, I wasn't aware of your comment, for some reason! I managed to solve it myself though, by:
shiftkey commentedon Aug 29, 2017
@glenndevenish Desktop has it's own system configuration but you can override just about everything in your global
~/.gitconfigusing Git for Windows. Could you tell me more about what configuration values you changed to get this working?glenndevenish commentedon Aug 29, 2017
@shiftkey Okay, good to know. Git for Windows wasn't installed by default, so that needed sorting.
I used
git config http.sslCAInfo /path/to/certificate.crtwith the certificate I'd saved from the Windows key manager.shiftkey commentedon Aug 29, 2017
@glenndevenish thanks for that. I'm curious why the use of Windows Certificate Store and SChannel here isn't working for your case, but I'm happy to close this out as resolved. Please comment if there is anything else to add.
NrI3 commentedon Feb 20, 2018
Copy cert path from configuration git
Add to global configuration
cool-charac commentedon May 26, 2018
@es3 This worked for me, thanks for posting it.
robertmryan commentedon May 27, 2018
I did the above
git configcommands and the "unable to check revocation" error was replaced with a new error:I do have Charles installed (which I believe uses a self-signed certificate), but I'm not running it at the moment.
shiftkey commentedon May 28, 2018
@robertmryan you can verify your connections using openssl to see what certificate chain it does find:
robertmryan commentedon May 28, 2018
@shiftkey Thanks, that identified the offending certificate, namely a Kaspersky cert installed as part of their suite, and once I removed that and rebooted, I can now use git desktop. Thanks!
ocdasdebjyoti commentedon Oct 29, 2018
Did this. But now I have a new error:
fatal: unable to access 'https://github.com/MyOrg/MyRep.git/': SSL certificate problem: self signed certificate in certificate chain
I ran the following command from the command line and got the same error.. Not sure where to go from here
ferbatres commentedon Nov 19, 2018
This Worked for me also, thanks.
ZYyiwanfuhao commentedon Dec 11, 2018
Zitchas commentedon Dec 24, 2018
@ZYyiwanfuhao Thanks for providing that. I didn't really want to remove my antivirus' certificates, so a way to disable the "Self signed cert" warning is appreciated.
KAZ-SYED-ABUTHAHIR commentedon Jul 20, 2019
Dear Friends I've found a way out. Blame it on your AV Software. When I paused my AV software and ran the command:
curl -l https:/api.github.com/zen
from the prompt, it told me,
Speak like a human.
Any elegant solution that may be applied without the need to disable the AV software is welcome.
snannap commentedon Dec 3, 2019
after applying the above in global . received CApath none message
snannap commentedon Dec 3, 2019
git config --global http.sslverify "false" this statement resolved issue
adjenks commentedon Jun 18, 2021
Similar to the answer by snannap, this disables the revocation check but only for schannel:
git config --global http.schannelCheckRevoke falseSuggested here: https://stackoverflow.com/questions/45556189/git-the-revocation-function-was-unable-to-check-revocation-for-the-certificate
This answer also gives nice reasoning why it might be okay or not okay to disable the revocation check.