error setting certificate verify locations: CAfile
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "/usr/share/ssl/certs/www.site.com.crt ");

the code given above is used for payment section. Then the error will displayed 

%s: s77
error setting certificate verify locations: CAfile: /home/site/public_html/usr/share/ssl/certs/www.site.com.crt CApath: none


how can fix this can anyone help me please

Thanks
error setting certificate verify locations: CAfile
===

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "/usr/share/ssl/certs/www.site.com.crt ");

the code given above is used for payment section. Then the error will displayed 

%s: s77
error setting certificate verify locations: CAfile: /home/site/public_html/usr/share/ssl/certs/www.site.com.crt CApath: none


how can fix this can anyone help me please

Thanks