Skip to content

Commit ed240f4

Browse files
silverwindbnoordhuis
authored andcommitted
doc: document 'ciphers' option of tls.connect
This option has been there for a long time, but has never been documented. It's functionally identical to the server counterpart. PR-URL: #845 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent b5f25a9 commit ed240f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/tls.markdown

+3
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ Creates a new client connection to the given `port` and `host` (old API) or
301301
format. If this is omitted several well known "root" CAs will be used,
302302
like VeriSign. These are used to authorize connections.
303303

304+
- `ciphers`: A string describing the ciphers to use or exclude, separated by
305+
`:`. Uses the same default cipher suite as `tls.createServer`.
306+
304307
- `rejectUnauthorized`: If `true`, the server certificate is verified against
305308
the list of supplied CAs. An `'error'` event is emitted if verification
306309
fails; `err.code` contains the OpenSSL error code. Default: `true`.

0 commit comments

Comments
 (0)