[icinga-checkins] icinga.org: icinga2/master: Fix incorrect certificate validation error message

git at icinga.org git at icinga.org
Thu Aug 18 10:23:33 CEST 2016


Module: icinga2
Branch: master
Commit: 730364b600c531fb9fa203c0138fd1ebbbac5b9b
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=730364b600c531fb9fa203c0138fd1ebbbac5b9b

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Aug 18 10:23:13 2016 +0200

Fix incorrect certificate validation error message

fixes #12475

---

 lib/remote/apilistener.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp
index 7082d96..41c98c0 100644
--- a/lib/remote/apilistener.cpp
+++ b/lib/remote/apilistener.cpp
@@ -372,8 +372,8 @@ void ApiListener::NewClientHandlerInternal(const Socket::Ptr& client, const Stri
 				return;
 			} else if (!verify_ok) {
 				Log(LogWarning, "ApiListener")
-					<< "Peer certificate for endpoint '" << hostname
-					<< "' is not signed by the certificate authority.";
+					<< "Certificate validation failed for endpoint '" << hostname
+					<< "': " << tlsStream->GetVerifyError();
 				return;
 			}
 		}



More information about the icinga-checkins mailing list