Skip to content

Commit a9db45e

Browse files
tgerkjuanarbol
authored andcommitted
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 <luigipinca@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent a558774 commit a9db45e

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
@@ -1938,8 +1938,9 @@ from `process.argv` as the default value of the `sessionIdContext` option, other
19381938
APIs that create secure contexts have no default value.
19391939

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

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

0 commit comments

Comments
 (0)