We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d7aa21 commit bc35f30Copy full SHA for bc35f30
src/node_crypto.cc
@@ -461,6 +461,11 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) {
461
SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_NO_SSLv2);
462
SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_NO_SSLv3);
463
464
+ // Enable automatic cert chaining. This is enabled by default in OpenSSL, but
465
+ // disabled by default in BoringSSL. Enable it explicitly to make the
466
+ // behavior match when Node is built with BoringSSL.
467
+ SSL_CTX_clear_mode(sc->ctx_.get(), SSL_MODE_NO_AUTO_CHAIN);
468
+
469
// SSL session cache configuration
470
SSL_CTX_set_session_cache_mode(sc->ctx_.get(),
471
SSL_SESS_CACHE_SERVER |
0 commit comments