node/lib/internal/tls
Kumar Rishav d9ea6c1f8d
tls: fix order of setting cipher before setting cert and key
Set the cipher list and cipher suite before anything else
because @SECLEVEL=<n> changes the security level and
that affects subsequent operations.

Fixes: https://github.com/nodejs/node/issues/36655
Fixes: https://github.com/nodejs/node/issues/49549
Refs: https://github.com/orgs/nodejs/discussions/49634
Refs: https://github.com/orgs/nodejs/discussions/46545
Refs: https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set_security_level.html
PR-URL: https://github.com/nodejs/node/pull/50186
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
2024-03-19 16:12:59 +00:00
..
secure-context.js tls: fix order of setting cipher before setting cert and key 2024-03-19 16:12:59 +00:00
secure-pair.js tls: add trailing commas in source files 2023-04-05 12:52:22 -04:00