How to fix "curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012)" while using curl in powershell on win11?

dreampasssser 0 Reputation points
2024-11-17T15:28:33.3266667+00:00

I used proxy software to access github. It worked in the browser, but it didn't work when I used curl in powershell. Access it as follows:

curl -v https://github.com 

This error will be reported:

* Host github.com:443 was resolved.
* IPv6: (none)
* IPv4: 127.0.0.1
*   Trying 127.0.0.1:443...
* Connected to github.com (127.0.0.1) port 443
* schannel: disabled automatic use of client certificate
* ALPN: curl offers http/1.1
* schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - 吊销功能无法检查证书是否吊销。
* closing connection #0
curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - 吊销功能无法检查证书是否吊销。

I looked it up and saw that the --ssl-no-revoke argument can be used to avoid errors. But this is a way to skip the check of revocation, I think it's not so good. I want to know if there's any other way to resolve it.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,111 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.