Error: error:0606506D:digital envelope routines

Hi,

I have created a new Auth0 Active Directory/LDAP Connector v6.1.8 on a Ubuntu server. I have added all the credentials.

When i run node server its throwing a Error: error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length

Is this a bug in the code?

node server.js
[2023-10-04 03:48:59] Reading CA certificates from OPENSSLDIR
[2023-10-04 03:48:59] Reading CA certificates from /usr/lib/ssl/certs
[2023-10-04 03:48:59] Adding 125 certificates
[2023-10-04 03:48:59] Loading settings from ticket: https://bfs-dev.au.auth0.com/p/ad/iJR8jiuaNnTF4EZuMpRjYUCPiMwt72Rm/info
[2023-10-04 03:48:59] Is Anonymous LDAP search enabled? no
[2023-10-04 03:48:59] Local settings updated.
[2023-10-04 03:48:59] Certificates already exist, skipping certificate generation.
[2023-10-04 03:48:59] Configuring connection bfs-dev.
[2023-10-04 03:48:59]  > Posting certificates and signInEndpoint: http://<myip>:4000/wsfed
[2023-10-04 03:48:59] Connection bfs-dev configured.
[2023-10-04 03:48:59] Connector setup complete.
[2023-10-04 03:48:59] Error: error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length
    at Decipheriv.final (internal/crypto/cipher.js:172:29)
    at Object.exports.decrypt (/opt/auth0-adldap/lib/crypto.js:47:76)
    at initializeConnection (/opt/auth0-adldap/lib/ldap.js:97:71)
    at Object.get [as binder] (/opt/auth0-adldap/lib/ldap.js:129:24)
    at new module.exports (/opt/auth0-adldap/lib/users.js:54:29)
    at Object.<anonymous> (/opt/auth0-adldap/ws_validator.js:8:13)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
[2023-10-04 03:51:32] Error: read ECONNRESET

I figured it out.

OpenSSL needed to be on installed before running npm install. This should be in the install doco…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.