chore: set encoding to utf-8

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-03-19 13:14:56 +01:00
parent dcfa173fb0
commit c1a587a939
@@ -48,8 +48,8 @@ export class LdapClient {
): Promise<LdapClient> {
let secureContext;
if (tls && tls.certs && tls.keys) {
const cert = await readFile(tls.certs).then(f => f.toString());
const key = await readFile(tls.keys).then(f => f.toString());
const cert = await readFile(tls.certs, 'utf-8');
const key = await readFile(tls.keys, 'utf-8');
secureContext = tlsLib.createSecureContext({
cert: cert,
key: key,