Specify how to turn off cert verification

This commit is contained in:
Liz Snyder 2021-08-26 15:23:06 -07:00
parent e210d7d217
commit 18d3891879
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ var client = new Client({
node: protocol + '://' + auth + '@' + host + ':' + port, node: protocol + '://' + auth + '@' + host + ':' + port,
ssl: { ssl: {
ca: fs.readFileSync(ca_certs_path), ca: fs.readFileSync(ca_certs_path),
// You can turn off certificate verification (rejectUnauthorized: false) if you're using self-signed certificates with a hostname mismatch.
// cert: fs.readFileSync(client_cert_path), // cert: fs.readFileSync(client_cert_path),
// key: fs.readFileSync(client_key_path) // key: fs.readFileSync(client_key_path)
} }