diff --git a/doc/api/tls.md b/doc/api/tls.md index 4f3430854e1e41..f9a313f9148490 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -411,6 +411,18 @@ encryption/decryption of the [TLS Session Tickets][]. Starts the server listening for encrypted connections. This method is identical to [`server.listen()`][] from [`net.Server`][]. +### server.setSecureContext(options) + + +* `options` {Object} An object containing any of the possible properties from + the [`tls.createSecureContext()`][] `options` arguments (e.g. `key`, `cert`, + `ca`, etc). + +The `server.setSecureContext()` method replaces the secure context of an +existing server. Existing connections to the server are not interrupted. + ### server.setTicketKeys(keys)