Use the shipped cacerts.pem instead of the global one

The one we ship may cause problems since Equifax is not included anymore (SHA-1 certs) are deprecated. We should just be consistent here and also use the certificate file which is used by the other calls in the library.
This commit is contained in:
Lukas Reschke 2016-03-30 16:55:26 +02:00
parent 456035a750
commit 57596e1415
1 changed files with 1 additions and 0 deletions

View File

@ -445,6 +445,7 @@ class Google extends \OC\Files\Storage\Common {
$client->get($downloadUrl, [
'headers' => $httpRequest->getRequestHeaders(),
'save_to' => $tmpFile,
'verify' => __DIR__ . '/../3rdparty/google-api-php-client/src/Google/IO/cacerts.pem',
]);
} catch (RequestException $e) {
if(!is_null($e->getResponse())) {