Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a9db45e

Browse filesBrowse 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
Copy full SHA for a9db45e

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/tls.md‎

Copy file name to clipboardExpand all lines: doc/api/tls.md
+3-2Lines changed: 3 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.