mirror of
https://github.com/iSharkFly-Docs/opensearch-docs-cn
synced 2025-03-02 05:09:06 +00:00
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,
|
||||
ssl: {
|
||||
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),
|
||||
// key: fs.readFileSync(client_key_path)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user