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

ERR_OSSL_EVP_UNSUPPORTED error #118

Open
cardin opened this issue Sep 20, 2022 · 2 comments
Open

ERR_OSSL_EVP_UNSUPPORTED error #118

cardin opened this issue Sep 20, 2022 · 2 comments

Comments

@cardin
Copy link

cardin commented Sep 20, 2022

I ran into a ERR_OSSL_EVP_UNSUPPORTED error.

My setup details are as follows:

  • Windows 2016 Server
  • Node 18.9.0

The stacktrace is:

{
   stack: 'Error: Unexpected error during http fetch! Error: error:0308010C:digital envelope routines::unsupported\n' +
      '   at new Hash (node:internal/crypto/hash:71:19)\n' +
      '   at Object.createHash (node:crypto:133:10)\n' +
      '   at Object.createNTLMHash (....\\node_modules\\node-ntlm-client\\lib\\hash.js:77:22)\n' +
      '   at Object.createType3Message (...\\node_modules\\node-ntlm-client\\lib\\ntlm.js:213:23)\n' +
      '   at ...\\node_modules\\node-sp-auth\\lib\src\\auth\\resolvers\\OnpremiseUserCredentials.js:41:35\n' +
      ....
      " opensslErrorStack: ['error:03000086:digital envelope routines::initialization error' ],\n" +
      " library: 'digital envelope routines',\n" +
      " reason: 'unsupported',\n" +
      " code: 'ERR_OSSL_EVP_UNSUPPORTED'\n" +
      '}\n'
}

Adding a NODE_OPTIONS env flag export NODE_OPTIONS=--openssl-legacy-provider as per https://stackoverflow.com/questions/69394632/webpack-build-failing-with-err-ossl-evp-unsupported seemed to remove the error.

This issue originates from Node v17.0.0 https://nodejs.org/en/blog/release/v17.0.0/#openssl-3-0

@davea38
Copy link

davea38 commented Apr 20, 2023

I am getting this as well - Node v18 is the current LTS version so it'd be great to get this fixed (the openssl-legacy-provider env var doesn't fix all of the errors)

@zubayed2008
Copy link

I am also having this issue. Is there any chance to update this package so that the current version of nodejs which has openssl 3.0.10+quic support this library.

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

3 participants