Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting error in Curl - Peer certificate cannot be authenticated with known CA certificates

Tags:

I am getting the below error while making ssl connection with self signed certificate. "Peer certificate cannot be authenticated with known CA certificates"

It is working fine with CA signed certificate. I am setting the below using curl_easy_setopt().

curl_easy_setopt(MyContext, CURLOPT_CAPATH, CA_CERTIFICATE_PATH) curl_easy_setopt(MyContext, CURLOPT_SSL_VERIFYPEER,TRUE);

The curl version
libcurl-7.19.7-26

Openssl version is 0_9_8u.

Please let me know how to solve this issue.