# Error: error:0606506D:digital envelope routines:EVP\_DecryptFinal\_ex:wrong final block length

**URL:** <https://community.auth0.com/t/error-errordigital-envelope-routineswrong-final-block-length/90062>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [September 6, 2022, 12:23pm UTC](https://community.auth0.com/t/error-errordigital-envelope-routineswrong-final-block-length/90062 "2022-09-06T12:23:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![avinash.gupta](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/avinash.gupta/32/17932_2.png) [@avinash.gupta](https://community.auth0.com/u/avinash.gupta)\
**Post date:** [September 6, 2022, 12:23pm UTC](https://community.auth0.com/t/error-errordigital-envelope-routineswrong-final-block-length/90062/1 "2022-09-06T12:23:09Z")

</div>

AnyOne Help me to solve this Issue ==\>  
Error: error:0606506D:digital envelope routines:EVP\_DecryptFinal\_ex:wrong final block length

[2022-09-06 12:09:53] Error: error:0606506D:digital envelope routines:EVP\_DecryptFinal\_ex:wrong final block length  
at Decipheriv.final (node:internal/crypto/cipher:193: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. (/opt/auth0-adldap/ws\_validator.js:8:13)  
at Module.\_compile (node:internal/modules/cjs/loader:1105:14)  
at Object.Module.\_extensions…js (node:internal/modules/cjs/loader:1159:10)  
at Module.load (node:internal/modules/cjs/loader:981:32)  
at Function.Module.\_load (node:internal/modules/cjs/loader:822:12)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [September 30, 2022, 11:41pm UTC](https://community.auth0.com/t/error-errordigital-envelope-routineswrong-final-block-length/90062/2 "2022-09-30T23:41:49Z")

</div>

Hi @avinash.gupta,

Welcome to the Auth0 Community and apologies for the delay!

Do you have some more information on how you are getting to this error?

---

<div class="post-metadata">

**Author:** ![ale.vesga1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ale.vesga1/32/60921_2.png) [@ale.vesga1](https://community.auth0.com/u/ale.vesga1)\
**Post date:** [November 19, 2024, 5:39pm UTC](https://community.auth0.com/t/error-errordigital-envelope-routineswrong-final-block-length/90062/4 "2024-11-19T17:39:57Z")

</div>

Hi @avinash.m,

This error relates to configuring the AD/LDAP Connector. Specifically, it seems the error comes from trying to decrypt an empty password. I would need to see your config.json file to investigate the issue further.

Here are two resources that could help:

- [Troubleshoot AD/LDAP Connector](https://auth0.com/docs/troubleshoot/integration-extensibility-issues/troubleshoot-ad-ldap-connector)

- [Configure AD/LDAP Connector Authentication with Kerberos](https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/active-directory-ldap/ad-ldap-connector/configure-ad-ldap-connector-with-kerberos)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 3, 2024, 5:40pm UTC](https://community.auth0.com/t/error-errordigital-envelope-routineswrong-final-block-length/90062/5 "2024-12-03T17:40:53Z")

</div>

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