node/test/fixtures
Sam Roberts 7c3d280bf0 doc: rework tls for accuracy and clarity
Document all TLSSocket options:

- All the secure context options are valid options
  to a secureContext
- isServer modifies the default value of requestCert

Describe all tls.connect() variants:

- tls.connect(path) was undocumented
- tls.connect(port) was underdocumented, and its relationship to
  tls.connect(options) was obscure

Socket passed to tls.connect is user managed:

- Replace https://github.com/nodejs/node/pull/8996

Add documentation to:

- describe and add tests for the pfx and key variants, and describe how
  and when passphrase is used.
- describe tls cert and ca options
- describe buffer forms of tls crl option
- describe tls cipher option and defaults
- fix link to Crypto Constants
- describe that honorCipherOrder sets SSL_OP_CIPHER_SERVER_PREFERENCE.
- describe tls ecdhCurve/dhparam options
- describe tls secureProtocol option
- describe tls secureOptions
- describe tls sessionIdContext

De-deduplicate secure context docs:

The secure context options were documented 4 times, making it difficult
to understand where the options come from, where they are supported,
and under what conditions they are used.

The multiple copies were inconsistent and contradictory in their
descriptions of the options, and also inconsistent in whether the
options would be documented at all.

Cut through this gordian knot by linking all APIs that use the
secureContext options to the single source of truth about the options.

PR-URL: https://github.com/nodejs/node/pull/9800
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2016-12-17 13:53:24 -05:00
..
b
break-in-module
clustered-server test: refactor test-debug-signal-cluster 2016-08-29 18:53:29 -07:00
cycles
empty
global
internal-modules
json-with-directory-name-module
keys test: enable to work pkcs12 test in FIPS mode 2016-02-09 13:05:48 +09:00
module-load-order
module-require module: fix resolution of filename with trailing slash 2016-04-20 09:45:57 -07:00
module-require-depth module: cache stat() results more aggressively 2016-01-12 12:35:11 -08:00
module-require-symlink test: improvements in test fixtures symlinked 2016-12-14 05:48:13 -06:00
nested-index
node_modules repl: fix require('3rdparty') regression 2015-12-09 23:30:02 +01:00
packages test: invalid package.json causes error when require()ing in directory 2016-12-08 02:11:08 +01:00
require-bin
syntax src: wrap source before doing syntax check 2015-10-29 13:08:32 -05:00
test-init-index
test-init-native
uncaught-exceptions
.empty-repl-history-file repl: Fixed node repl history edge case. 2015-12-22 13:29:28 -05:00
.node_repl_history test: add tests for persistent repl history 2015-08-04 11:56:18 -07:00
a.js
a1.js
agent.crt
agent.key
alice.crt
baz.js test: update test-repl-require for local paths 2016-03-29 21:39:26 +02:00
breakpoints.js test: fix test-debugger-repl-term 2016-05-12 20:23:18 -07:00
breakpoints_utf8.js
catch-stdout-error.js
cert.pem
child-process-message-and-exit.js
child-process-persistent.js
child-process-spawn-node.js
child_process_should_emit_error.js
cluster-preload-test.js
cluster-preload.js node: rename from io.js to node 2015-08-23 17:59:43 -04:00
create-file.js
crypto-timing-safe-equal-benchmark-func.js test: make crypto.timingSafeEqual test less flaky 2016-09-11 21:06:10 -07:00
debug-target.js
debug-uncaught-async.js test: increase _debugger coverage 2016-09-06 22:47:15 -07:00
debug-uncaught.js test: add uncaught exception test for debugger 2016-08-15 22:13:00 -07:00
debugger-repeat-last.js debugger: run last command on presssing enter 2016-04-14 10:53:07 -07:00
debugger-util-regression-fixture.js node_contextify: do not incept debug context 2016-02-05 15:40:56 -08:00
define-global.js node: allow preload modules with -i 2016-01-18 10:57:45 -06:00
deprecated-userland-class.js util: fix deprecated class prototype 2016-08-17 18:27:22 -07:00
deprecated-userland-function.js util: prepend '(node) ' to deprecation messages 2015-07-03 16:32:29 +02:00
deprecated-userland-subclass.js util: support classes in util.deprecate() 2016-08-04 11:44:40 -04:00
deprecated.js util: Remove p, has been deprecated for years 2015-10-19 20:52:56 +02:00
destroy-stdin.js
dherror.pem
doc_inc_1.md tools: make sure doctool anchors respect includes 2016-05-26 00:49:34 +02:00
doc_inc_2.md tools: make sure doctool anchors respect includes 2016-05-26 00:49:34 +02:00
doc_with_includes.md tools: make sure doctool anchors respect includes 2016-05-26 00:49:34 +02:00
doc_with_yaml.md tools: allow multiple added: version entries 2016-05-05 01:15:10 +02:00
echo-close-check.js
echo.js
elipses.txt
empty.js
empty.txt
exit.js
exports-function-with-param.js test: add test for debugging one line files 2015-12-16 10:08:43 -05:00
file-to-read-with-bom.txt test: ensure stream preprocessing order 2016-07-27 13:56:55 +02:00
file-to-read-without-bom.txt test: ensure stream preprocessing order 2016-07-27 13:56:55 +02:00
fixture.ini
foafssl.crt
foafssl.key
foo
GH-892-request.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
GH-1899-output.js
google_ssl_hello.bin tls: add options argument to createSecurePair 2015-10-17 11:53:45 -04:00
invalid.json
is-object.js test: add known issue test for #7788 2016-07-20 13:01:42 -04:00
listen-on-socket-and-exit.js test: only refresh tmpDir for tests that need it 2015-06-13 22:27:17 -07:00
loop.js inspector: introduce a smoke test 2016-09-19 12:40:16 -07:00
module-loading-error.node
msca.pem
multi-alice.crt
net-fd-passing-receiver.js test: change calls to deprecated util.print() 2015-09-28 13:21:15 -07:00
not-main-module.js
old-repl-history-file.json test: add tests for persistent repl history 2015-08-04 11:56:18 -07:00
openssl_fips_disabled.cnf crypto: Improve control of FIPS mode 2016-02-25 15:06:41 -05:00
openssl_fips_enabled.cnf crypto: Improve control of FIPS mode 2016-02-25 15:06:41 -05:00
order_of_end_tags_5873.md tools: add tests for the doctool 2016-04-29 00:45:49 +02:00
parent-process-nonpersistent.js
pass-cert.pem
pass-csr.pem
pass-key.pem test: stronger crypto in test fixtures 2015-11-13 10:22:42 -08:00
path-resolve.js path: fallback to process cwd when resolving drive cwd 2016-09-29 11:14:49 -07:00
path.js
person.jpg test: strip non-free icc profile from person.jpg 2016-03-21 23:20:43 -07:00
person.jpg.gz test: strip non-free icc profile from person.jpg 2016-03-21 23:20:43 -07:00
print-10-lines.js
print-chars-from-buffer.js buffer: add .from(), .alloc() and .allocUnsafe() 2016-03-16 08:34:02 -07:00
print-chars.js lib: simplify code with String.prototype.repeat() 2016-03-21 16:42:58 -07:00
printA.js
printB.js
printC.js
pseudo-multimember-gzip.gz zlib: Fix handling of gzip magic bytes mid-file 2016-03-23 13:04:19 -04:00
pseudo-multimember-gzip.z zlib: Fix handling of gzip magic bytes mid-file 2016-03-23 13:04:19 -04:00
raw-key.pem doc: rework tls for accuracy and clarity 2016-12-17 13:53:24 -05:00
recvfd.js
registerExt.hello.world
registerExt.test
registerExt2.test
sample.png
sample_document.md tools: add tests for the doctool 2016-04-29 00:45:49 +02:00
semicolon.js
should_exit.js
spkac.fail
spkac.pem
spkac.valid
stdio-filter.js
test-error-first-line-offset.js module: fix column offsets in errors 2015-11-20 16:26:24 -05:00
test-fs-readfile-error.js Revert "fs: make callback mandatory to all async functions" 2016-08-05 00:13:29 +02:00
test-regress-GH-4015.js
test_bad_rsa_privkey.pem crypto: check for OpenSSL errors when signing 2015-08-17 21:38:12 -07:00
test_ca.pem
test_cert.pem
test_cert.pfx test: stronger crypto in test fixtures 2015-11-13 10:22:42 -08:00
test_dsa_params.pem
test_dsa_privkey.pem test: stronger crypto in test fixtures 2015-11-13 10:22:42 -08:00
test_dsa_privkey_encrypted.pem test: stronger crypto in test fixtures 2015-11-13 10:22:42 -08:00
test_dsa_pubkey.pem test: stronger crypto in test fixtures 2015-11-13 10:22:42 -08:00
test_key.pem
test_rsa_privkey.pem
test_rsa_privkey_2.pem
test_rsa_privkey_encrypted.pem test: stronger crypto in test fixtures 2015-11-13 10:22:42 -08:00
test_rsa_pubkey.pem
test_rsa_pubkey_2.pem
throws_error.js
throws_error1.js
throws_error2.js
throws_error3.js
throws_error4.js
throws_error5.js src: fix buffer overflow for long exception lines 2015-09-06 21:38:07 +10:00
throws_error6.js src: use standard conform snprintf on windows 2015-09-06 21:38:08 +10:00
throws_error7.js src: don't print garbage errors 2015-12-05 11:15:49 -05:00
tls-session-ticket.txt
url-setter-tests.json url: adding WHATWG URL support 2016-10-12 10:34:18 -07:00
url-tests.json test: add failing url parse tests as known_issue 2016-05-01 21:31:14 -07:00
utf8-bom.js
utf8-bom.json
vm-run-in-debug-context.js
warnings.js process: add 'warning' event and process.emitWarning() 2016-03-24 13:19:11 -07:00
x.txt
x1024.txt