-
Notifications
You must be signed in to change notification settings - Fork 32
Unable to enable crypto on TCP connection #7
Comments
Anybody? It is very important... |
This is an issue coming from OpenSSL and the certificates installed in your environment. If you cannot install the SSL certificate of gdata on your machine I suggest to try to set the sslverifypeer to false. |
Experiencing same problem right now with \ZendGData\Spreadsheets in production. Setting an option didn't help. Still got this:
But everything is fine locally. |
This is an issue with how your http adapter is configured. Use the curl On Tuesday, November 6, 2012, Roman Lapin wrote:
Matthew Weier O'Phinney |
@weierophinney many thanks! Using curl adapter helped. |
Can someone explain how to use the curl adapter or edit sslcapath to a valid location? |
@gamempire I did it this way for Spreadsheets: $service = \ZendGData\Spreadsheets::AUTH_SERVICE_NAME;
$adapter = new \Zend\Http\Client\Adapter\Curl();
$httpClient = new \ZendGData\HttpClient();
$httpClient->setAdapter($adapter);
$client = \ZendGData\ClientLogin::getHttpClient($login, $password, $service, $httpClient); I believe there are alternative ways, but that one worked for me. |
When i do so i get the following exception. Error in cURL request: SSL certificate problem, verify that the CA cert is OK.
Details error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Anybody got it work? |
The only thing that worked for me is to set the VERIFYHOST and VERIFYPEER options like this. $service = \ZendGData\Analytics::AUTH_SERVICE_NAME;
$adapter = new \Zend\Http\Client\Adapter\Curl();
$adapter = $adapter->setCurlOption(CURLOPT_SSL_VERIFYHOST,false);
$adapter = $adapter->setCurlOption(CURLOPT_SSL_VERIFYPEER,false);
$httpClient = new \ZendGData\HttpClient();
$httpClient->setAdapter($adapter);
$client = \ZendGData\ClientLogin::getHttpClient("***", "***", $service, $httpClient); |
@weierophinney many thanks! Using curl adapter helped. |
I'm running into the same issue, (Centos 6; Ubuntu) where I'm setting the sslcapath option to '/etc/ssl/certs' or 'etc/pki/tls/certs' and just get the "error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed" error. @FabianKoestring More details here: |
When i try to return some YOutube videos of a specific user with:
$yt = new \ZendGData\YouTube();
$yt->getuserUploads('usernameYoutube');
i receive this error: Unable to enable crypto on TCP connection gdata.youtube.com: make sure the "sslcapath" option points to a valid SSL certificate directory
What do i have to do? Is't a bug? I saw this:
http://framework.zend.com/issues/browse/ZF2-490
but i don't understand what i have to edit... i tested the system on debian and mac and i return the same error...
The text was updated successfully, but these errors were encountered: