From be62022344c350165f3ce1f5b83c497d386744cf Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Fri, 6 Oct 2023 08:49:03 -0700 Subject: [PATCH] https://telecominfraproject.atlassian.net/browse/WIFI-7831 Signed-off-by: stephb9959 --- src/RADSEC_server.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RADSEC_server.h b/src/RADSEC_server.h index 297e2639..a0afdb71 100644 --- a/src/RADSEC_server.h +++ b/src/RADSEC_server.h @@ -185,14 +185,14 @@ namespace OpenWifi { Poco::TemporaryFile KeyFile_(MicroServiceDataDirectory()); Poco::TemporaryFile OpenRoamingRootCertFile_(MicroServiceDataDirectory()); Poco::TemporaryFile Intermediate0(MicroServiceDataDirectory()); - Poco::TemporaryFile Intermediate1(MicroServiceDataDirectory()); +// Poco::TemporaryFile Intermediate1(MicroServiceDataDirectory()); Poco::TemporaryFile Combined(MicroServiceDataDirectory()); std::vector> CaCertFiles_; DecodeFile(KeyFile_.path(), Server_.radsecKey); DecodeFile(CertFile_.path(), Server_.radsecCert); DecodeFile(Intermediate0.path(), Server_.radsecCacerts[0]); - DecodeFile(Intermediate1.path(), Server_.radsecCacerts[1]); +// DecodeFile(Intermediate1.path(), Server_.radsecCacerts[1]); for (auto &cert : Server_.radsecCacerts) { CaCertFiles_.emplace_back( @@ -240,7 +240,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->addChainCertificate(Poco::Crypto::X509Certificate(Intermediate1.path())); SecureContext->enableExtendedCertificateVerification(false); Socket_ = std::make_unique(SecureContext);