diff --git a/mcrouter/lib/network/FizzContextProvider.cpp b/mcrouter/lib/network/FizzContextProvider.cpp index d4334a63e..51e64dd76 100644 --- a/mcrouter/lib/network/FizzContextProvider.cpp +++ b/mcrouter/lib/network/FizzContextProvider.cpp @@ -80,7 +80,7 @@ std::shared_ptr createFizzServerContext( auto selfCert = fizz::openssl::CertUtils::makeSelfCert(certData.str(), keyData.str()); // add the default cert - certMgr->addCert(std::move(selfCert), true); + certMgr->addCertAndSetDefault(std::move(selfCert)); } catch (const std::exception& ex) { LOG_FAILURE( "SSLCert",