Skip to content

Node.js 22.x: OpenSSL config error when using openssl_pkey_new() with curve_name in PHP 8.3 (vercel-php@0.7.3) #590

@dewanakl

Description

@dewanakl

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,
]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions