From 0c99c1a7c16d85b927e45e3b59b6c32e367dab28 Mon Sep 17 00:00:00 2001 From: Tim Gerk Date: Sun, 15 Jan 2023 17:42:34 -0800 Subject: [PATCH] Update tls.md tls.createServer() and new tls.Server() ignore secureContext option --- doc/api/tls.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/api/tls.md b/doc/api/tls.md index 8db7ac2f193291..77b59d9ad74e7f 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1940,8 +1940,7 @@ from `process.argv` as the default value of the `sessionIdContext` option, other APIs that create secure contexts have no default value. The `tls.createSecureContext()` method creates a `SecureContext` object. It is -usable as an argument to several `tls` APIs, such as [`tls.createServer()`][] -and [`server.addContext()`][], but has no public methods. +usable as an argument to several `tls` APIs, such as [`server.addContext()`][], but has no public methods. (Note: [`tls.createServer()`][] and [`tls.Server`][] constructor do *not* support the `secureContext` option.) A key is _required_ for ciphers that use certificates. Either `key` or `pfx` can be used to provide it.