diff --git a/doc/api/tls.md b/doc/api/tls.md index 6368e93d76719b..f8e9edb78a77c3 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1403,6 +1403,12 @@ The `callback` function, if specified, will be added as a listener for the `tls.connect()` returns a [`tls.TLSSocket`][] object. +Unlike the `https` API, `tls.connect()` does not enable the +SNI (Server Name Indication) extension by default, which may cause some +servers to return an incorrect certificate or reject the connection +altogether. To enable SNI, set the `servername` option in addition +to `host`. + The following illustrates a client for the echo server example from [`tls.createServer()`][]: