Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-7831
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Oct 6, 2023
1 parent be62022 commit 878e705
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/RADSEC_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::unique_ptr<Poco::TemporaryFile>> 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(
Expand Down Expand Up @@ -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<Poco::Net::SecureStreamSocket>(SecureContext);
Expand Down

0 comments on commit 878e705

Please sign in to comment.