# AWX Active Directory LDAP SSL broken certificate verify failed (EE certificate key too weak)

**URL:** <https://forum.ansible.com/t/awx-active-directory-ldap-ssl-broken-certificate-verify-failed-ee-certificate-key-too-weak/37761>\
**Category:** AWX Project\
**Tags:** awx, ee\
**Created:** [March 13, 2023, 8:49pm UTC](https://forum.ansible.com/t/awx-active-directory-ldap-ssl-broken-certificate-verify-failed-ee-certificate-key-too-weak/37761 "2023-03-13T20:49:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory\_Machin](https://avatars.discourse-cdn.com/v4/letter/g/e5b9ba/32.png) [@Gregory\_Machin](https://forum.ansible.com/u/Gregory_Machin)\
**Post date:** [March 13, 2023, 8:49pm UTC](https://forum.ansible.com/t/awx-active-directory-ldap-ssl-broken-certificate-verify-failed-ee-certificate-key-too-weak/37761/1 "2023-03-13T20:49:12Z")

</div>

Hi,

We are using Active Directory for user authentication, this being configured over ssl on port 636. This was working fine until this last weekend when we installed Defender on the Active Directory and some patching, On Monday AD users couldn’t login. In the logs I found

2023-03-13 19:57:05,849 WARNING [861e481d805442c8ae1b3d8e417129e8] django\_auth\_ldap Caught LDAPError while authenticating clubbing80: SERVER\_DOWN({‘result’: -1, ‘desc’: “Can’t contact LDAP server”, ‘ctrls’: , ‘info’: ‘error:0A000086:SSL routines::**certificate verify failed (EE certificate key too weak**)’})  
2023-03-13 19:57:05,851 WARNING [861e481d805442c8ae1b3d8e417129e8] awx.api.generics Login failed for user clubbing80s from 10.42.0.145  
2023-03-13 19:57:05,855 WARNING [861e481d805442c8ae1b3d8e417129e8] django.request Unauthorized: /api/login/  
2023-03-13 19:57:05,855 WARNING [861e481d805442c8ae1b3d8e417129e8] django.request Unauthorized: /api/login/

I have searched the history here and found [AWX LDAPS authentication - disable REQUIRE CERT (google.com)](https://groups.google.com/g/awx-project/c/l1OZPm0H0T8/m/37YYCUQ5BgAJ) .

in “/api/v2/settings/ldap/” I have tried to configure the following :

“AUTH\_LDAP\_CONNECTION\_OPTIONS”: {  
“OPT\_REFERRALS”: 0,  
“OPT\_NETWORK\_TIMEOUT”: 30,  
“OPT\_X\_TLS\_NEWCTX”: 0  
},

but I still get the same error :  
2023-03-13 20:45:21,687 WARNING [f3ae7128cefd460d9d90a7ac38da60d5] django\_auth\_ldap Caught LDAPError while authenticating clubbing80s: SERVER\_DOWN({‘result’: -1, ‘desc’: “Can’t contact LDAP server”, ‘ctrls’: , ‘info’: ‘error:0A000086:SSL routines::**certificate verify failed (EE certificate key too weak)**’})  
2023-03-13 20:45:21,691 WARNING [f3ae7128cefd460d9d90a7ac38da60d5] awx.api.generics Login failed for user clubbing80s from 10.42.0.145  
2023-03-13 20:45:21,698 WARNING [f3ae7128cefd460d9d90a7ac38da60d5] django.request Unauthorized: /api/login/  
2023-03-13 20:45:21,698 WARNING [f3ae7128cefd460d9d90a7ac38da60d5] django.request Unauthorized: /api/login/

Please advise on next steps.

Greg

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [March 17, 2023, 5:15pm UTC](https://forum.ansible.com/t/awx-active-directory-ldap-ssl-broken-certificate-verify-failed-ee-certificate-key-too-weak/37761/2 "2023-03-17T17:15:12Z")

</div>

Hi!

If you are simply trying to disable cert requirement, your settings should look something like this

“AUTH\_LDAP\_CONNECTION\_OPTIONS”: {  
“OPT\_X\_TLS\_REQUIRE\_CERT”: 0,

“OPT\_NETWORK\_TIMEOUT”: 30,

“OPT\_X\_TLS\_NEWCTX”: 0,  
“OPT\_REFERRALS”: 0}

Otherwise, seems like a LDAP server configuration issue

AWX Team

---

<div class="post-metadata">

**Author:** ![Gregory\_Machin](https://avatars.discourse-cdn.com/v4/letter/g/e5b9ba/32.png) [@Gregory\_Machin](https://forum.ansible.com/u/Gregory_Machin)\
**Post date:** [March 27, 2023, 1:58am UTC](https://forum.ansible.com/t/awx-active-directory-ldap-ssl-broken-certificate-verify-failed-ee-certificate-key-too-weak/37761/3 "2023-03-27T01:58:17Z")

</div>

Thank you for the work-a-round.
