Skip to content

Commit db067ff

Browse files
committed
fix: enable auto cert chaining to match OpenSSL behaviour
1 parent e66aa77 commit db067ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node_crypto.cc

+2
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) {
461461
SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_NO_SSLv2);
462462
SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_NO_SSLv3);
463463

464+
SSL_CTX_clear_mode(sc->ctx_.get(), SSL_MODE_NO_AUTO_CHAIN);
465+
464466
// SSL session cache configuration
465467
SSL_CTX_set_session_cache_mode(sc->ctx_.get(),
466468
SSL_SESS_CACHE_SERVER |

0 commit comments

Comments
 (0)