Auth0 Home Blog Docs

How to add a certificate to ad-ldap-connector

certificate
ad-connector
ldaps

#1

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?


#2