diff --git a/doc/api/tls.md b/doc/api/tls.md index e7b912b35eec6b..128da2c10b377d 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1392,6 +1392,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()`][]: