diff --git a/src/Library/Core/Util/ECKey.php b/src/Library/Core/Util/ECKey.php index 76b45189..6c3bc696 100644 --- a/src/Library/Core/Util/ECKey.php +++ b/src/Library/Core/Util/ECKey.php @@ -92,6 +92,7 @@ private static function createECKeyUsingOpenSSL(string $curve): array $key = openssl_pkey_new([ 'curve_name' => self::getOpensslCurveName($curve), 'private_key_type' => OPENSSL_KEYTYPE_EC, + 'private_key_bits' => 2048, // Not used for EC keys. See https://github.com/php/php-src/pull/19103 ]); if ($key === false) { throw new RuntimeException('Unable to create the key');