[mapserver-users] Mapcahe curl error certificate verify failed

Andreas Douvalis anddreas2 at yahoo.gr
Fri Sep 26 00:17:09 PDT 2014


Hi!

I have one self-signded certificate for my local site (that I have for develpment-test purposes) and I want to get rid off  certificate verification error. 

How can I pass in curl the option: CURLOPT_SSL_VERIFYPEER false.


I tried with the environments in apache conf:

SetEnv CURL_CA_BUNDLE "/ms4w/Apache/conf/ca-bundle/cacert.pem"
SetEnv CURLOPT_SSL_VERIFYPEER false
SetEnv CURLOPT_SSL_VERIFYHOST 1
SetEnv CURLOPT_CAINFO "/ms4w/Apache/conf/ca-bundle/cacert.pem"

but the above solution it does not work. I tried with inserting in my windows system environment variables the above values but, still i does not work.

The error message is :
curl failed to request url https://localhost/cgi-bin/mapserv.exe?map=user.map&VERSION=1.1.1&..... : SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Maybe in cgi mode you can not pass environments? 

PLEASE HELP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140926/8f0b0b25/attachment.html>


More information about the mapserver-users mailing list