@@ -564,9 +564,9 @@ Creates a new client connection to the given `port` and `host` (old API) or
564
564
- ` cert ` : A string or ` Buffer ` containing the certificate key of the client in
565
565
PEM format. (Could be an array of certs).
566
566
567
- - ` ca ` : An array of strings or ` Buffer ` s of trusted certificates in PEM
568
- format. If this is omitted several well known "root" CAs will be used,
569
- like VeriSign. These are used to authorize connections.
567
+ - ` ca ` : A string, ` Buffer ` or array of strings or ` Buffer ` s of trusted
568
+ certificates in PEM format. If this is omitted several well known "root"
569
+ CAs will be used, like VeriSign. These are used to authorize connections.
570
570
571
571
- ` ciphers ` : A string describing the ciphers to use or exclude, separated by
572
572
` : ` . Uses the same default cipher suite as ` tls.createServer ` .
@@ -674,8 +674,9 @@ dictionary with keys:
674
674
objects in the format ` {pem: key, passphrase: passphrase} ` . (Required)
675
675
* ` passphrase ` : A string of passphrase for the private key or pfx
676
676
* ` cert ` : A string holding the PEM encoded certificate
677
- * ` ca ` : Either a string or list of strings of PEM encoded CA
678
- certificates to trust.
677
+ * ` ca ` : A string, ` Buffer ` or array of strings or ` Buffer ` s of trusted
678
+ certificates in PEM format. If this is omitted several well known "root"
679
+ CAs will be used, like VeriSign. These are used to authorize connections.
679
680
* ` crl ` : Either a string or list of strings of PEM encoded CRLs
680
681
(Certificate Revocation List)
681
682
* ` ciphers ` : A string describing the ciphers to use or exclude.
@@ -736,9 +737,9 @@ automatically set as a listener for the [`'secureConnection'`][] event. The
736
737
- ` cert ` : A string or ` Buffer ` containing the certificate key of the server in
737
738
PEM format. (Could be an array of certs). (Required)
738
739
739
- - ` ca ` : An array of strings or ` Buffer ` s of trusted certificates in PEM
740
- format. If this is omitted several well known "root" CAs will be used,
741
- like VeriSign. These are used to authorize connections.
740
+ - ` ca ` : A string, ` Buffer ` or array of strings or ` Buffer ` s of trusted
741
+ certificates in PEM format. If this is omitted several well known "root"
742
+ CAs will be used, like VeriSign. These are used to authorize connections.
742
743
743
744
- ` crl ` : Either a string or list of strings of PEM encoded CRLs (Certificate
744
745
Revocation List)
0 commit comments