8000 docs: add documentation for ssl rejectUnauthorized · mysqljs/mysql@8d245c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d245c0

Browse files
committed
docs: add documentation for ssl rejectUnauthorized
1 parent c3c2068 commit 8d245c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ following options:
284284
[`crypto.createCredentials()`] if using Node.js below 0.12).
285285
* `passphrase`: This is passed as the `passphrase` option for [`tls.createSecureContext()`] call (or
286286
underlying [`crypto.createCredentials()`] if using Node.js below 0.12).
287+
* `rejectUnauthorized`: The server certificate is verified against the list of supplied CAs and the
288+
hostname, and if no match is found, the SSL connection will fail. (Default: `true`)
287289

288290
[`crypto.createCredentials()`]: https://nodejs.org/docs/latest-v0.10.x/api/crypto.html#crypto_crypto_createcredentials_details
289291
[`tls.createSecureContext()`]: https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options

0 commit comments

Comments
 (0)
0