Skip to content

Commit 80e14d7

Browse files
skenqbxFishrock123
authored andcommitted
doc: move checkServerIdentity option to tls.connect()
PR-URL: #1107 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
1 parent 684a587 commit 80e14d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/tls.markdown

+4-4
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,6 @@ automatically set as a listener for the [secureConnection][] event. The
180180
which is not authorized with the list of supplied CAs. This option only
181181
has an effect if `requestCert` is `true`. Default: `false`.
182182

183-
- `checkServerIdentity(servername, cert)`: Provide an override for checking
184-
server's hostname against the certificate. Should return an error if verification
185-
fails. Return `undefined` if passing.
186-
187183
- `NPNProtocols`: An array or `Buffer` of possible NPN protocols. (Protocols
188184
should be ordered by their priority).
189185

@@ -316,6 +312,10 @@ Creates a new client connection to the given `port` and `host` (old API) or
316312

317313
- `servername`: Servername for SNI (Server Name Indication) TLS extension.
318314

315+
- `checkServerIdentity(servername, cert)`: Provide an override for checking
316+
server's hostname against the certificate. Should return an error if verification
317+
fails. Return `undefined` if passing.
318+
319319
- `secureProtocol`: The SSL method to use, e.g. `SSLv3_method` to force
320320
SSL version 3. The possible values depend on your installation of
321321
OpenSSL and are defined in the constant [SSL_METHODS][].

0 commit comments

Comments
 (0)