FIXME: certificates reading should be async.
This commit is contained in:
parent
0595360808
commit
e1587d11b1
@ -47,6 +47,7 @@ class AuthLdap {
|
|||||||
|
|
||||||
tlsOptions.rejectUnauthorized = checkCertificate
|
tlsOptions.rejectUnauthorized = checkCertificate
|
||||||
if (certificateAuthorities) {
|
if (certificateAuthorities) {
|
||||||
|
// FIXME: should be async!!!
|
||||||
tlsOptions.ca = certificateAuthorities.map(path => readFileSync(path))
|
tlsOptions.ca = certificateAuthorities.map(path => readFileSync(path))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user