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

Error: error:0308010C:digital envelope routines::unsupported #229

Open
0xharold opened this issue Dec 1, 2022 · 0 comments
Open

Error: error:0308010C:digital envelope routines::unsupported #229

0xharold opened this issue Dec 1, 2022 · 0 comments

Comments

@0xharold
Copy link

0xharold commented Dec 1, 2022

Mocha Test Explorer for VSC does not work,
It returns the error bellow when I try to use it in Damn Vulnerable Defi:

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at hash160 (/home/haraslub/eth-security-toolbox/damn-vulnerable-defi/node_modules/ethereum-cryptography/vendor/hdkey-without-crypto.js:249:21)
    at HDKey.set (/home/haraslub/eth-security-toolbox/damn-vulnerable-defi/node_modules/ethereum-cryptography/vendor/hdkey-without-crypto.js:50:24)
    at Function.HDKey.fromMasterSeed (/home/haraslub/eth-security-toolbox/damn-vulnerable-defi/node_modules/ethereum-cryptography/vendor/hdkey-without-crypto.js:194:20)
    at Object.deriveKeyFromMnemonicAndPath (/home/haraslub/eth-security-toolbox/damn-vulnerable-defi/node_modules/hardhat/src/internal/util/keys-derivation.ts:21:27)
    at derivePrivateKeys (/home/haraslub/eth-security-toolbox/damn-vulnerable-defi/node_modules/hardhat/src/internal/core/providers/util.ts:29:24)
    at Object.normalizeHardhatNetworkAccountsConfig (/home/haraslub/eth-security-toolbox/damn-vulnerable-defi/node_modules/hardhat/src/internal/core/providers/util.ts:56:10)
    at Object.createProvider (/home/haraslub/eth-security-toolbox/damn-vulnerable-defi/node_modules/hardhat/src/internal/core/providers/construction.ts:75:22)
    at /home/haraslub/eth-security-toolbox/damn-vulnerable-defi/node_modules/hardhat/src/internal/core/runtime-environment.ts:80:14 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

I tried to use possible fixes like export NODE_OPTIONS=--openssl-legacy-provider or nvm use 16, but nothing mentioned works.

Does anyone could help me with this issue, please?

Environment:
WIN 11
WSL2, Ubuntu

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