FIXME: certificates reading should be async.

This commit is contained in:
Julien Fontanet 2015-09-21 10:23:48 +02:00
parent 0595360808
commit e1587d11b1

View File

@ -47,6 +47,7 @@ class AuthLdap {
tlsOptions.rejectUnauthorized = checkCertificate
if (certificateAuthorities) {
// FIXME: should be async!!!
tlsOptions.ca = certificateAuthorities.map(path => readFileSync(path))
}
}