node/lib/internal/tls
Anna Henningsen bc020f7cb3
tls: add allowPartialTrustChain flag
This commit exposes the `X509_V_FLAG_PARTIAL_CHAIN` OpenSSL flag to
users. This is behavior that has been requested repeatedly in the
Github issues, and allows aligning behavior with other TLS libraries
and commonly used applications (e.g. `curl`).

As a drive-by, simplify the `SecureContext` source by deduplicating
call sites at which a new custom certificate store was created for the
`secureContext` in question.

Fixes: https://github.com/nodejs/node/issues/36453
PR-URL: https://github.com/nodejs/node/pull/54790
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2024-10-02 16:04:13 +02:00
..
secure-context.js tls: add allowPartialTrustChain flag 2024-10-02 16:04:13 +02:00
secure-pair.js tls: add trailing commas in source files 2023-02-22 01:22:23 +01:00