简体   繁体   English

使用libcurl和SSL进行对等验证

[英]Peer verifying with libcurl and SSL

I'm POSTing data to a HTTPS server using libcurl compiled with openssl using Visual Studio 2008 in windows and it all works fine with CURLOPT_SSL_VERIFYPEER set to 0. I've tried following http://curl.haxx.se/docs/sslcerts.html and just about every "SSL and SECURITY OPTIONS" option in the manual. 我正在使用libcurl将数据发布到HTTPS服务器,而libcurl是在Windows中使用Visual Studio 2008使用openssl编译的,而openssl则将CURLOPT_SSL_VERIFYPEER设置为0,都可以正常工作我尝试遵循http://curl.haxx.se/docs/sslcerts。 html以及手册中几乎所有的“ SSL和安全选项”选项。 I'm wondering what the right combination of options is and what the certificate file should look like. 我想知道选项的正确组合是什么,证书文件应该是什么样。

Thanks. 谢谢。

You can find information about how to extract CA Certs from official site 您可以找到有关如何从官方网站提取CA证书的信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM