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