doc: specify the format of the `ca` tls option

archived-io.js-v0.10
Nathan Rajlich 2013-09-16 13:57:00 -07:00
parent 7196742852
commit afabdf0e15
1 changed files with 6 additions and 6 deletions

View File

@ -104,9 +104,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. (Required) PEM format. (Required)
- `ca`: An array of strings or `Buffer`s of trusted certificates. If this is - `ca`: An array of strings or `Buffer`s of trusted certificates in PEM
omitted several well known "root" CAs will be used, like VeriSign. format. If this is omitted several well known "root" CAs will be used,
These are used to authorize connections. 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)
@ -262,9 +262,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. PEM format.
- `ca`: An array of strings or `Buffer`s of trusted certificates. If this is - `ca`: An array of strings or `Buffer`s of trusted certificates in PEM
omitted several well known "root" CAs will be used, like VeriSign. format. If this is omitted several well known "root" CAs will be used,
These are used to authorize connections. like VeriSign. These are used to authorize connections.
- `rejectUnauthorized`: If `true`, the server certificate is verified against - `rejectUnauthorized`: If `true`, the server certificate is verified against
the list of supplied CAs. An `'error'` event is emitted if verification the list of supplied CAs. An `'error'` event is emitted if verification