diff --git a/src/RADSEC_server.h b/src/RADSEC_server.h index 37d226a6..38ba7a21 100644 --- a/src/RADSEC_server.h +++ b/src/RADSEC_server.h @@ -248,6 +248,7 @@ namespace OpenWifi { SecureContext->addCertificateAuthority(Poco::Crypto::X509Certificate(OpenRoamingRootCertFile_.path())); SecureContext->addChainCertificate(Poco::Crypto::X509Certificate(Intermediate0.path())); SecureContext->addChainCertificate(Poco::Crypto::X509Certificate(Intermediate1.path())); + SecureContext->enableExtendedCertificateVerification(false); Socket_ = std::make_unique(SecureContext); DBGLINE @@ -262,7 +263,6 @@ namespace OpenWifi { DBGLINE Socket_->completeHandshake(); DBGLINE - SecureContext->enableExtendedCertificateVerification(false); DBGLINE if (!Server_.allowSelfSigned) {