Skip to content
This repository was archived by the owner on Oct 29, 2026. It is now read-only.
This repository was archived by the owner on Oct 29, 2026. It is now read-only.

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

Open

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

Activity

  1. f3l1x commented on Jan 15, 2026

    @f3l1x
    Collaborator

    Hi, use node 22.x.

  2. dewanakl commented on Jan 19, 2026

    @dewanakl
    Author

    Hi, thanks for your response. The problem is still the same, and I’m using Node.js 22.x.

  3. f3l1x commented on Mar 26, 2026

    @f3l1x
    Collaborator

    Hi @dewanakl can you test v0.8 or v0.9?

  4. dewanakl commented on May 21, 2026

    @dewanakl
    Author

    Hi, sorry for the late response. I’m using v0.8, and it works normally with Node.js 24.

    However, I found a small issue: the MongoDB library is not available in v0.8.

    If possible, could you please add MongoDB support to v0.8?

    Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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