Skip to content

Commit

Permalink
fix: enable auto cert chaining to match OpenSSL behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Oct 2, 2018
1 parent e66aa77 commit db067ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) {
SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_NO_SSLv2);
SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_NO_SSLv3);

SSL_CTX_clear_mode(sc->ctx_.get(), SSL_MODE_NO_AUTO_CHAIN);

// SSL session cache configuration
SSL_CTX_set_session_cache_mode(sc->ctx_.get(),
SSL_SESS_CACHE_SERVER |
Expand Down

0 comments on commit db067ff

Please sign in to comment.