Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: move checkServerIdentity option to tls.connect() #1107

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/api/tls.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down Expand Up @@ -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][].
Expand Down