新年回来以后,同组有位小伙伴 Clone 代码忽然出问题了,问题以下:css
fatal: unable to access <repo-name>
: schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - The revocation function was unable to check revocation because the revocation server was offline.
repo-name 涉及公司信息,就不贴出来了。
在网上简单地查了一下,附上几个有价值的 Link,你们嫌弃我这个帖子讲不清楚的话,能够去看下面这几个连接:
简单来讲,你的 Client 和 Server 之间的 certificate 交互是经过 SChannel(Windows Secure Channel) 或者 OpenSSL 的。
有映像的伙伴们可能记得在安装 Git 的时候有如下这么一个界面:
显然,当报出这个错的时候,你的电脑和 Server 的交互使用了 SChannel,至于再具体的缘由,我就不得而知了。git
一个简单地解决方法,就是强制使用 OpenSSL,使用以下命令:github
$ git config --global http.schannelCheckRevoke false
而后,在你的 C:\Users\<user name>\.gitconfig 文件中,就会增长一个参数配置:spa
[http]
schannelCheckRevoke = falseserver
这个值不配置的话默认是 true,即便用 SChannel。blog