# How to add a certificate to ad-ldap-connector

**URL:** <https://community.auth0.com/t/how-to-add-a-certificate-to-ad-ldap-connector/8555>\
**Category:** Get Help\
**Tags:** certificate, ad-connector, ldaps\
**Created:** [October 24, 2017, 6:24am UTC](https://community.auth0.com/t/how-to-add-a-certificate-to-ad-ldap-connector/8555 "2017-10-24T06:24:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iroberts](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@iroberts](https://community.auth0.com/u/iroberts)\
**Post date:** [October 24, 2017, 6:24am UTC](https://community.auth0.com/t/how-to-add-a-certificate-to-ad-ldap-connector/8555/1 "2017-10-24T06:24:29Z")

</div>

I’m trying to connect to a coorporate AD server with a certificate signed by an internal corporate signing certificate. When I try to use the admin console (node admin/server.js) to connect to this server, the console itself crashes, with the following logs:

```
Reading CA certificates from OPENSSLDIR
Reading CA certificates from /usr/lib/ssl/certs
Adding 150 certificates
Listening on http://localhost:8357.
undefined
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: unable to get local issuer certificate
    at Error (native)
    at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)
    at emitNone (events.js:86:13)
    at TLSSocket.emit (events.js:185:7)
    at TLSSocket._finishInit (_tls_wrap.js:610:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)

```

I assume that the fix is to provide the signing cert via config.js; however, from the documentation, I’m not able to determine what the correct way is to do that. Does anyone have experience with adding certificates in this fashion?

---

<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:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/how-to-add-a-certificate-to-ad-ldap-connector/8555/2 "2018-03-02T05:57:06Z")

</div>


