-
Notifications
You must be signed in to change notification settings - Fork 53
Description
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.