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