doc: move checkServerIdentity option to tls.connect()
PR-URL: https://github.com/iojs/io.js/pull/1107 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
This commit is contained in:
Родитель
684a5878b6
Коммит
80e14d736e
|
@ -180,10 +180,6 @@ automatically set as a listener for the [secureConnection][] event. The
|
|||
which is not authorized with the list of supplied CAs. This option only
|
||||
has an effect if `requestCert` is `true`. Default: `false`.
|
||||
|
||||
- `checkServerIdentity(servername, cert)`: Provide an override for checking
|
||||
server's hostname against the certificate. Should return an error if verification
|
||||
fails. Return `undefined` if passing.
|
||||
|
||||
- `NPNProtocols`: An array or `Buffer` of possible NPN protocols. (Protocols
|
||||
should be ordered by their priority).
|
||||
|
||||
|
@ -316,6 +312,10 @@ Creates a new client connection to the given `port` and `host` (old API) or
|
|||
|
||||
- `servername`: Servername for SNI (Server Name Indication) TLS extension.
|
||||
|
||||
- `checkServerIdentity(servername, cert)`: Provide an override for checking
|
||||
server's hostname against the certificate. Should return an error if verification
|
||||
fails. Return `undefined` if passing.
|
||||
|
||||
- `secureProtocol`: The SSL method to use, e.g. `SSLv3_method` to force
|
||||
SSL version 3. The possible values depend on your installation of
|
||||
OpenSSL and are defined in the constant [SSL_METHODS][].
|
||||
|
|
Загрузка…
Ссылка в новой задаче