Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

how to use TLS in this module #322

Closed
xianfeng95 opened this issue Dec 1, 2015 · 3 comments
Closed

how to use TLS in this module #322

xianfeng95 opened this issue Dec 1, 2015 · 3 comments

Comments

@xianfeng95
Copy link

var ldapjs = require("ldapjs");
var ldapUrl='ldaps://lunar:636';
var client = ldapjs.createClient({
url: ldapUrl
});
but this thow err:
events.js:85
throw er; // Unhandled 'error' event
^
Error: unable to verify the first certificate
at Error (native)
at TLSSocket. (_tls_wrap.js:929:36
at TLSSocket.emit (events.js:104:17)
at TLSSocket._finishInit (_tls_wrap.js:460:8)

@aneelaSaleem
Copy link

Please look at issue #307
It might help you solve the problem

@pfmooney
Copy link
Contributor

It appears that the certificate of the server you're connecting to is not signed by a CA your system trusts. (Or lacks an appropriate cert chain.) Please confirm that the server SSL is configured properly and/or specify the necessary TLS options to extend your trust to the server.

@jsumners
Copy link
Member

⚠️ This issue has been locked due to age. If you have encountered a recent
problem that seems to be covered by this issue, please open a new issue.

Please include a minimal reproducible example
when opening a new issue.

@ldapjs ldapjs locked as resolved and limited conversation to collaborators Mar 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants