curl - Google PHP API Client: CA cert error -


i'm attempting interface google php api client , having issues certificate provided google:

google error:

ssl certificate problem, verify ca cert ok. retrying ca cert bundle google-api-php-client.  

php curl error:

ssl certificate problem: unable local issuer certificate 

i had no problems whatsoever on linux box. these errors occuring on windows box.

i've tried couple of different solutions:

https://code.google.com/
http://richardwarrender.com/

but no avail.

ps:

curl_setopt($ch, curlopt_ssl_verifypeer, false);   

won't acceptable ...

courtesy of rmckay @ webaware dot com dot au:

please everyone, stop setting curlopt_ssl_verifypeer false or 0. if php installation doesn't have up-to-date ca root certificate bundle, download 1 @ curl website , save on server:

http://curl.haxx.se/docs/caextract.html

then set path in php.ini file, e.g. on windows:

curl.cainfo=c:\php\cacert.pem 

turning off curlopt_ssl_verifypeer allows man in middle (mitm) attacks, don't want!


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -