diff --git a/lib.js b/lib.js index d6c6a65..7217965 100644 --- a/lib.js +++ b/lib.js @@ -115,6 +115,14 @@ function pinoElasticSearch (opts) { ssl: { rejectUnauthorized: opts.rejectUnauthorized } } + if (opts.tls) { + clientOpts.tls = opts.tls + } + + if (opts.caFingerprint) { + clientOpts.caFingerprint = opts.caFingerprint + } + if (opts.Connection) { clientOpts.Connection = opts.Connection }