Hi All,

I have doubt on ssl verify peer option. I am always getting
following error even though I have given correct self signed certificate in
the CA_INFO option and enabled peer option.

* SSL certificate problem, verify that the CA cert is OK. Details:

error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed

Can anyone tell me whether SSL_VERIFYPEER works or not. I am using
openssl-0.9.8g and curl-7.17.1. shall I switch to latest version?



curl_easy_setopt(ch,CURLOPT_SSLCERTTYPE,"PEM");


curl_easy_setopt(ch,CURLOPT_SSL_VERIFYPEER,1);


curl_easy_setopt(ch,CURLOPT_CAINFO,"myca.pem");


curl_easy_setopt(ch,CURLOPT_SSL_VERIFYHOST, 2);


curl_easy_setopt(ch,CURLOPT_SSLKEYTYPE,"PEM");


curl_easy_setopt(ch,CURLOPT_SSLKEY,key_name);


curl_easy_setopt(ch,CURLOPT_SSLCERT,cert_name);



Regards,

Parvathy.S