Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error:0308010C:digital envelope routines::unsupported #38

Open
santacodes opened this issue Nov 14, 2024 · 0 comments
Open

error:0308010C:digital envelope routines::unsupported #38

santacodes opened this issue Nov 14, 2024 · 0 comments

Comments

@santacodes
Copy link

This error might be caused due to OpenSSL-related changes in Node.js v17 and above. OpenSSL 3.0 is used in node versions v17+, which has stricter handling of cryptographic functions, and some older cryptographic algorithms are now legacy code.

A temporary solution would be to add a NODE_OPTIONS=--openssl-legacy-provider to build and dev scripts to support the OpenSSL legacy provider.

Node js version - 23.1.0

Full logs -

node:internal/crypto/hash:79
  this[kHandle] = new _Hash(algorithm, xofLen, algorithmId, getHashCache());
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)

  opensslErrorStack: [
    'error:03000086:digital envelope routines::initialization error',
    'error:0308010C:digital envelope routines::unsupported'
  ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v23.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant