LPO*_*Yui 1 ssl ssl-certificate tls1.2
C:\Users\casta>curl https://c5.ppy.sh
curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
Run Code Online (Sandbox Code Playgroud)
我已经建立了自己的CA,并从该CA获得了证书。
问题是,当我尝试使用此证书访问网站时,它工作正常!
但是,如果我尝试使用curl或C#应用程序,它将返回错误。
C#错误在这里:
2019-02-28T09:20:33: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel
2019-02-28T09:20:33: ??: #=zGFbxUFU_LnBci6wJmmCy1$E=.#=z0YcFrd6MZP1A()
2019-02-28T09:20:33: ??: #=zuFHGCPNOLQmjQEcRmqQHLnQ=.#=z3NGNjJ0=()
Run Code Online (Sandbox Code Playgroud)
小智 5
I've been using curl through a mitm proxy for pen-testing and getting the same issue.
I finally figured that curl needs a parameter telling it not to check certificate revocation, so the command looks something like this:
curl "https://www.example.com" --ssl-no-revoke -x 127.0.0.1:8081
Run Code Online (Sandbox Code Playgroud)
The -x parameter passes the proxy details - you may not need this.
hth
您可以使用该--ssl标志并像这样省略https
curl --ssl c5.ppy.sh
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1785 次 |
| 最近记录: |