sscarpa / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

SSL issue on G+ example code on local host #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. i'm using this code: 
https://google-plus-php-starter.googlecode.com/svn/trunk/index.php
2. i've inserted my oauth ids, url, secret
3. i'm getting error

What is the expected output? What do you see instead?

expected ouput: anything else than an error. to connect, so i can work around 
further, to display something from my profile

i receive the folowing error:

Fatal error: Uncaught exception 'apiIOException' with message 'HTTP Error: (60) 
SSL certificate problem, verify that the CA cert is OK. Details: 
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify 
failed' in 
C:\wamp\www\googleplus\google-api-php-client\src\io\apiCurlIO.php:120 Stack 
trace: #0 
C:\wamp\www\googleplus\google-api-php-client\src\auth\apiOAuth2.php(72): 
apiCurlIO->makeRequest(Object(apiHttpRequest)) #1 
C:\wamp\www\googleplus\google-api-php-client\src\apiClient.php(130): 
apiOAuth2->authenticate(Array) #2 C:\wamp\www\googleplus\index.php(46): 
apiClient->authenticate() #3 {main} thrown in 
C:\wamp\www\googleplus\google-api-php-client\src\io\apiCurlIO.php on line 120

What version of the product are you using? On what operating system?

api php client 0.4.4; win xp,  wamp, php 5.3.0, curl_extension enabled,

Please provide any additional information below.

i'm new to this kind of application. 

Original issue reported on code.google.com by souls...@gmail.com on 16 Sep 2011 at 12:40

GoogleCodeExporter commented 8 years ago
done something around it. in apiCurlIO.php I modified the line:

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
to
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

now it ouputs info from my profile. sorry any inconveniece, i should have 
searched more...

Original comment by souls...@gmail.com on 16 Sep 2011 at 12:53

GoogleCodeExporter commented 8 years ago

Original comment by chiragsh...@gmail.com on 16 Sep 2011 at 5:18