-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels