Curl 使用mozilla cacert.pem文件时,错误:无法获取本地颁发者证书

Curl 使用mozilla cacert.pem文件时,错误:无法获取本地颁发者证书,curl,openssl,libcurl,Curl,Openssl,Libcurl,我有一个使用libcurl的程序,但我得到一个错误: * successfully set certificate verify locations: * CAfile: c:\MinGW_New\ssl\misc\demoCA\cacert.pem CApath: none * SSL certificate problem: unable to get local issuer certificate * Closing connection #0`enter code here`

我有一个使用libcurl的程序,但我得到一个错误:

* successfully set certificate verify locations:
*   CAfile: c:\MinGW_New\ssl\misc\demoCA\cacert.pem
  CApath: none
* SSL certificate problem: unable to get local issuer certificate
* Closing connection #0`enter code here`
我试图从文件中附加mozilla证书,但仍然收到相同的错误

知道我做错了什么吗

我将curl中的CAINFO选项设置为mozilla证书的正确路径。那部分被证实是有效的

我需要签署我的mozilla pem文件吗?我正在使用openssl,你是如何做到这一点的