From d7b5d7fda36ea12141d2c22956256500549b25c8 Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Wed, 13 Sep 2023 23:48:40 -0700 Subject: [PATCH] https://telecominfraproject.atlassian.net/browse/WIFI-7831 Signed-off-by: stephb9959 --- src/RADSEC_server.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/RADSEC_server.h b/src/RADSEC_server.h index 21c32cf3..88cfda9b 100644 --- a/src/RADSEC_server.h +++ b/src/RADSEC_server.h @@ -204,6 +204,8 @@ namespace OpenWifi { Socket_->connect(Destination, Poco::Timespan(100, 0)); Socket_->completeHandshake(); + SecureContext->enableExtendedCertificateVerification(false); + /* if (!Server_.allowSelfSigned) { Socket_->verifyPeerCertificate(); } @@ -232,10 +234,10 @@ namespace OpenWifi { poco_information(Logger_, fmt::format("Connected. CN={}", CommonName())); return true; } catch (const Poco::Net::NetException &E) { - poco_information(Logger_, "Could not connect."); + poco_information(Logger_, "NetException: Could not connect."); Logger_.log(E); } catch (const Poco::Exception &E) { - poco_information(Logger_, "Could not connect."); + poco_information(Logger_, "Exception: Could not connect."); Logger_.log(E); } catch (...) { poco_information(Logger_, "Could not connect.");