diff --git a/src/PhpSpreadsheet/Worksheet/Drawing.php b/src/PhpSpreadsheet/Worksheet/Drawing.php index 7a5ceac2b3..63d15f9f4f 100644 --- a/src/PhpSpreadsheet/Worksheet/Drawing.php +++ b/src/PhpSpreadsheet/Worksheet/Drawing.php @@ -112,7 +112,7 @@ public function setPath(string $path, bool $verifyFile = true, ?ZipArchive $zip $ctx = null; // https://github.com/php/php-src/issues/16023 if (str_starts_with($path, 'https:')) { - $ctx = stream_context_create(['ssl' => ['crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT]]); + $ctx = stream_context_create(['ssl' => ['crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT]]); } $imageContents = file_get_contents($path, false, $ctx); if ($imageContents !== false) {