擅长:python、mysql、java
<p>你读过cURL文档吗?这似乎直接解决了你的问题……特别是第2项:</p>
<pre><code> 2. Get a CA certificate that can verify the remote server and use the proper
option to point out this CA cert for verification when connecting. For
libcurl hackers: curl_easy_setopt(curl, CURLOPT_CAPATH, capath);
</code></pre>
<p>pycurl模块似乎包含<code>CAPATH</code>选项,因此在代码中实现应该很简单。</p>