Specify how to turn off cert verification
This commit is contained in:
parent
e210d7d217
commit
18d3891879
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue