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

in NodeJS 18.x on Lambda AWS getting the error:0308010C:digital envelope routines::unsupported #86

Open
Beefcaker opened this issue Mar 26, 2024 · 0 comments

Comments

@Beefcaker
Copy link

When using the package on AWS to connect to an SMB share, I get the following error:

ERROR Uncaught Exception {
"errorType": "Error",
"errorMessage": "error:0308010C:digital envelope routines::unsupported",
"code": "ERR_OSSL_EVP_UNSUPPORTED",
"library": "digital envelope routines",
"reason": "unsupported",
"stack": [
"Error: error:0308010C:digital envelope routines::unsupported",
" at Cipheriv.createCipherBase (node:internal/crypto/cipher:122:19)",
" at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:141:3)",
" at new Cipheriv (node:internal/crypto/cipher:249:3)",
" at Object.createCipheriv (node:crypto:141:10)",
" at /opt/nodejs/node_modules/ntlm/lib/smbhash.js:46:22",
" at Array.forEach ()",
" at lmhashbuf (/opt/nodejs/node_modules/ntlm/lib/smbhash.js:45:20)",
" at Object.encodeType3 (/opt/nodejs/node_modules/ntlm/lib/ntlm.js:106:3)",
" at Object.generate (/opt/nodejs/node_modules/@marsaud/smb2/lib/messages/session_setup_step2.js:14:22)",
" at SMB2Forge.request (/opt/nodejs/node_modules/@marsaud/smb2/lib/tools/smb2-forge.js:16:24)"
]
}

This seems to be related to NODE_OPTIONS:--openssl-legacy-provider, but even after adding this to the lambda (in v.18.x) the error remains.

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