【问题标题】:How to tell curl to use one client cert from the Windows Cert Store?如何告诉 curl 使用来自 Windows 证书商店的一个客户端证书?
【发布时间】:2022-12-15 17:09:52
【问题描述】:

免责声明:我是 curl 的新手。

当我使用 Chrome 访问 https://server.cryptomix.com/secure/ 时,Chrome 要求我从 Windows 证书商店中目前拥有的少数几个客户端证书中选择一个。

一旦我选择了一个证书,cryptomix.com 就会很高兴。

美好的。现在我有一个随 Windows 一起提供的 curl

但是,如果我只是 curl https://server.cryptomix.com/secure/ cryptomix 就不高兴了。

我如何告诉 curl 使用我的 Windows 证书商店中的某个客户端证书?

【问题讨论】:

  • 如果问题更适合超级用户,您如何将问题迁移到那里?

标签: windows curl ssl-certificate


【解决方案1】:

有人在Super User 上帮助了我。

诀窍是不要在证书路径前加上“CurrentUser”。

c:WindowsSystem32>curl.exe --cert
"\MY\7cbcaf1586e5a1cb9ba72aa7deed294ca4779266"
https://server.cryptomix.com/secure/

【讨论】:

    猜你喜欢
    • 2017-03-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-29
    • 2012-01-08
    • 2014-07-15
    • 2015-08-07
    • 2012-11-17
    相关资源
    最近更新 更多