Skip to content

Commit

Permalink
RED-48113: Set a default of partial chain verification (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyco-redis authored Nov 11, 2020
1 parent 8fb3cb8 commit 6e14801
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/extensions/transport_sockets/tls/context_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ ContextImpl::ContextImpl(Stats::Scope& scope, const Envoy::Ssl::ContextConfig& c
if (has_crl) {
X509_STORE_set_flags(store, X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL);
}

// RED-48113: Set a default of partial chain verification
ENVOY_LOG_MISC(info, "Applying X509_V_FLAG_PARTIAL_CHAIN on TLS contexts");
X509_STORE_set_flags(store, X509_V_FLAG_PARTIAL_CHAIN);

verify_mode = SSL_VERIFY_PEER;
verify_trusted_ca_ = true;

Expand Down

0 comments on commit 6e14801

Please sign in to comment.