Fix incorrect certificate validation error message

fixes #12475
This commit is contained in:
Gunnar Beutner 2016-08-18 10:23:13 +02:00
parent 6629277157
commit 730364b600
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}