Open garrettgjb opened 6 years ago
Plus one - this is causing an outage in production as we can't upload generated images to our IAD storage bucket.
exception 'Guzzle\Http\Exception\CurlException' with message '[curl] 60: [url] https://identity.api.rackspacecloud.com/v2.0/tokens'
Yeah. Problem is that the ancient Guzzle this depends on bundles its own certs.
Workaround is to use your system certs. My factory now looks sumthink like:
return new Rackspace(
$config['auth_url'],
[
'username' => $config['username'],
'apiKey' => $config['api_key']
],
[
// Guzzle ships with outdated certs
Rackspace::SSL_CERT_AUTHORITY => 'system',
Rackspace::CURL_OPTIONS => [
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_SSL_VERIFYHOST => 2,
],
]
);
Thanks @kynx!!
Thanks @kynx ! Nothing like debugging a production issue on a Friday.
Thanks @kynx for the workaround.
Thanks @kynx !!
Thanks @kynx . Wondered why I came into work finding a massive log file complaining about fileupload error's
Is Rackspace going to replace their dependency on guzzle/guzzle with guzzlehttp/guzzle?
Hi @kynx. In wich file should I use this patch? Thanks.
Edit: For now I just replaced Guzzle certificate file and everything is working again. See: https://community.rackspace.com/products/f/dedicated-hybrid-hosting-forum/8674/rackspace-public-cloud-php-opencloud-sdk-errors-due-to-outdated-certificate-authority-list
@lrrosa the snippet I posted is from where I create the Rackspace client in my code, not from anywhere in php-opencloud. HTH.
FYI - I needed this for one of my own projects so I created a seperate wrapper at: https://github.com/itspkr/rackspace-cloud-flysystem
Literally just points Guzzle back at the system certifcates rather than the outdated ones inside Guzzle.
The solutions above didn't fix the problem for me, but this solution did:
This is happening both locally and on the production server so I'm guessing you guys changed the cert recently and the provider is not very common. I even downloaded the ca bundle from https://curl.haxx.se/ to see if my certs were out of date but that didn't fix it. Any suggestions?
I have php 5.6 and we are using "rackspace/php-opencloud": "v1.16.0",