Bug report
- Version: PHP 8.3 (vercel-php@0.7.3)
- URL: no
- Repository: no
Description
Using PHP 8.3 with vercel-php@0.7.3 runtime, calling openssl_pkey_new() with curve_name and private_key_type works on Node.js 18.x (OpenSSL 1.0.2k-fips 26 Jan 2017) but fails on Node.js 22.x with the following error:
error:0E079065:configuration file routines:DEF_LOAD_BIO:missing equal sign
error:0E079065:configuration file routines:DEF_LOAD_BIO:missing equal sign
Code example:
$keyResource = openssl_pkey_new([
'curve_name' => 'prime256v1',
'private_key_type' => OPENSSL_KEYTYPE_EC,
]);