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:
parent
0e687993c8
commit
bd93722e12
|
@ -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())) {
|
||||
|
|
Loading…
Reference in New Issue