Skip to content

ERR_OSSL_EVP_UNSUPPORTED #2

@adryserage

Description

@adryserage

The error ERR_OSSL_EVP_UNSUPPORTED has been mentioned in the release notes for Node.js 17.

If you hit an ERR_OSSL_EVP_UNSUPPORTED error 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. A command-line option, --openssl-legacy-provider, has been added to revert to the legacy provider as a temporary workaround for these tightened restrictions.

is it the right solution ?

As a workaround solution you can fix this by using the legacy provider for openssl. So, you need to edit the package.json file under your application’s root directory and check for the following lines and replace them accordingly.

replace by "start": "react-scripts --openssl-legacy-provider start"
replace by "build": "react-scripts --openssl-legacy-provider build"

image

Source : https://roytuts.com/how-to-fix-err_ossl_evp_unsupported-in-react-js-application/

Should we update the solution to be used at least with Node.js 17 ? (i use v18.13.0)

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