Skip to content

Commit 6ecbd57

Browse files
authored
doc: add note to tls docs about secureContext availability
tls.createServer() and new tls.Server() ignore secureContext option. PR-URL: #46224 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 5a7d4a7 commit 6ecbd57

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/api/tls.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1940,8 +1940,9 @@ from `process.argv` as the default value of the `sessionIdContext` option, other
19401940
APIs that create secure contexts have no default value.
19411941

19421942
The `tls.createSecureContext()` method creates a `SecureContext` object. It is
1943-
usable as an argument to several `tls` APIs, such as [`tls.createServer()`][]
1944-
and [`server.addContext()`][], but has no public methods.
1943+
usable as an argument to several `tls` APIs, such as [`server.addContext()`][],
1944+
but has no public methods. The [`tls.Server`][] constructor and the
1945+
[`tls.createServer()`][] method do not support the `secureContext` option.
19451946

19461947
A key is _required_ for ciphers that use certificates. Either `key` or
19471948
`pfx` can be used to provide it.

0 commit comments

Comments
 (0)