From 730364b600c531fb9fa203c0138fd1ebbbac5b9b Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 18 Aug 2016 10:23:13 +0200 Subject: [PATCH] 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 7082d9643..41c98c01d 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; } }