From bd93722e1251cb6676daf1c05d3bfd261d791386 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 30 Mar 2016 16:55:26 +0200 Subject: [PATCH] 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. --- apps/files_external/lib/google.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php index b79f42d1e0..91e7dfee08 100644 --- a/apps/files_external/lib/google.php +++ b/apps/files_external/lib/google.php @@ -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())) {