If you found yourself stuck on this error, Node's OpenSSL is to blame. But don't worry, it's a quick fix.
In the latest releases, Node.js now includes OpenSSL 3.0 (quictls/openssl which provides QUIC support). While OpenSSL 3.0 APIs should be mostly compatible with those provided by OpenSSL 1.1.1, we find some restrictions on the allowed algorithms and key sizes.
If you hit an ERR_OSSL_EVP_UNSUPPORTED error (like 0308010C:digital envelope routines::unsupported) in your application with Node.js 17, it’s likely that your application or a module you’re using is attempting to use an algorithm or key size which is no longer allowed by default with OpenSSL 3.0.
To solve it, all you need to do is run this command
export NODE_OPTIONS=--openssl-legacy-provider
After that, the error will be gone 😁
Comments (0)