From ba029f50dede784f78f8f56d25733a5ac0282f8f Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Tue, 26 Mar 2019 09:39:23 -0700 Subject: [PATCH] fixup! doc: remove reference to "credentials object" --- doc/api/tls.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/tls.md b/doc/api/tls.md index aa0dba49b01e7b..ac97742d27978e 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1406,9 +1406,9 @@ to `true`, other APIs that create secure contexts leave it unset. 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. The -object has no public methods, but is accepted as an argument to several `tls` -APIs, such as [`tls.createServer()`][] and [`server.addContext()`][]. +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. A key is *required* for ciphers that make use of certificates. Either `key` or `pfx` can be used to provide it.