diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 7082d964318..41c98c01d21 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; } }