Uncaught exception 'apiIOException' with message 'HTTP Error: (0) error setting certificate verify locations

325 views
Skip to first unread message

Agustín de Casamajor

unread,
May 11, 2012, 1:42:14 PM5/11/12
to google-api...@googlegroups.com
Hi,

I am getting started with using this API for a project. When I tried to test the basic example provided I got this error at the end of oAuth process:

Fatal error: Uncaught exception 'apiIOException' with message 'HTTP Error: (0) error setting certificate verify locations: CAfile: /usr/share/curl/curl-ca-bundle.crt CApath: none ' in /home/isatcoma/isatc-www/google-api-src/io/apiCurlIO.php:127 Stack trace: #0 /home/isatcoma/isatc-www/google-api-src/auth/apiOAuth2.php(93): apiCurlIO->makeRequest(Object(apiHttpRequest)) #1 /home/isatcoma/isatc-www/google-api-src/apiClient.php(138): apiOAuth2->authenticate(Array) #2 /home/isatcoma/isatc-www/operaciones/calendario_eventos_gCal.php(14): apiClient->authenticate() #3 {main} thrown in /home/isatcoma/isatc-www/google-api-src/io/apiCurlIO.php on line 127 

What should I do?

Thanks in advance!

Chirag Shah

unread,
May 11, 2012, 3:04:46 PM5/11/12
to google-api...@googlegroups.com
Hey Agustin!

The error "HTTP Error: (0) error setting certificate verify locations: CAfile: /usr/share/curl/curl-ca-bundle.crt" means the certificates on your webserver are probably not configured correctly.
The first step is to view the file at /usr/share/curl/curl-ca-bundle.crt and visually inspect it to see if proper certificates live there. If so, what are the permissions on that file?

Agustín de Casamajor

unread,
May 11, 2012, 3:35:42 PM5/11/12
to google-api...@googlegroups.com
Hey Chirag!

Thanks for your response. The fact is I have but only FTP access to this shared server where my current project is hosted, so I can't view that file. Is there any short cut to avoid this certificate or I should migrate the whole project to another server where I have full access privileges in order to be able to use this API?
Reply all
Reply to author
Forward
0 new messages