@@ -546,9 +546,9 @@ Creates a new client connection to the given `port` and `host` (old API) or
546
546
- ` cert ` : A string or ` Buffer ` containing the certificate key of the client in
547
547
PEM format. (Could be an array of certs).
548
548
549
- - ` ca ` : An array of strings or ` Buffer ` s of trusted certificates in PEM
550
- format. If this is omitted several well known "root" CAs will be used,
551
- like VeriSign. These are used to authorize connections.
549
+ - ` ca ` : A string, ` Buffer ` or array of strings or ` Buffer ` s of trusted
550
+ certificates in PEM format. If this is omitted several well known "root"
551
+ CAs will be used, like VeriSign. These are used to authorize connections.
552
552
553
553
- ` ciphers ` : A string describing the ciphers to use or exclude, separated by
554
554
` : ` . Uses the same default cipher suite as ` tls.createServer ` .
@@ -643,8 +643,9 @@ dictionary with keys:
643
643
objects in the format ` {pem: key, passphrase: passphrase} ` . (Required)
644
644
* ` passphrase ` : A string of passphrase for the private key or pfx
645
645
* ` cert ` : A string holding the PEM encoded certificate
646
- * ` ca ` : Either a string or list of strings of PEM encoded CA
647
- certificates to trust.
646
+ * ` ca ` : A string, ` Buffer ` or array of strings or ` Buffer ` s of trusted
647
+ certificates in PEM format. If this is omitted several well known "root"
648
+ CAs will be used, like VeriSign. These are used to authorize connections.
648
649
* ` crl ` : Either a string or list of strings of PEM encoded CRLs
649
650
(Certificate Revocation List)
650
651
* ` ciphers ` : A string describing the ciphers to use or exclude.
@@ -704,9 +705,9 @@ automatically set as a listener for the [`'secureConnection'`][] event. The
704
705
- ` cert ` : A string or ` Buffer ` containing the certificate key of the server in
705
706
PEM format. (Could be an array of certs). (Required)
706
707
707
- - ` ca ` : An array of strings or ` Buffer ` s of trusted certificates in PEM
708
- format. If this is omitted several well known "root" CAs will be used,
709
- like VeriSign. These are used to authorize connections.
708
+ - ` ca ` : A string, ` Buffer ` or array of strings or ` Buffer ` s of trusted
709
+ certificates in PEM format. If this is omitted several well known "root"
710
+ CAs will be used, like VeriSign. These are used to authorize connections.
710
711
711
712
- ` crl ` : Either a string or list of strings of PEM encoded CRLs (Certificate
712
713
Revocation List)
0 commit comments