How to fix "schannel: disabled automatic use of client certificate" 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 also 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, so I don't really want to use it.

I want to find a way to manual use of client certificate or enable automatic use of client certificate. And any other way without skip of the check is fine.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,967 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,620 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.