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 #2

Open
KazeroG opened this issue Feb 25, 2023 · 0 comments
Open

ERR_OSSL_EVP_UNSUPPORTED #2

KazeroG opened this issue Feb 25, 2023 · 0 comments

Comments

@KazeroG
Copy link

KazeroG commented Feb 25, 2023

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)

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