Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo #8895

Merged
merged 1 commit into from
Oct 8, 2021
Merged

Fix typo #8895

merged 1 commit into from
Oct 8, 2021

Conversation

Al2Klimov
Copy link
Member

fixes #8766

@icinga-probot icinga-probot bot added this to the 2.14.0 milestone Jul 12, 2021
@icinga-probot icinga-probot bot added area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working labels Jul 12, 2021
@Al2Klimov
Copy link
Member Author

@cla-bot check

@cla-bot cla-bot bot added the cla/signed label Aug 4, 2021
@@ -660,7 +660,7 @@ void ApiListener::NewClientHandlerInternal(
identity = GetCertificateCN(cert);
} catch (const std::exception&) {
Log(LogCritical, "ApiListener")
<< "Cannot get certificate common name from cert path: '" << GetDefaultCertPath() << "'.";
<< "Cannot get certificate common name from peer cert.";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message would be more helpful if it included the peer address (should already be available in the variable conninfo)

@Al2Klimov Al2Klimov merged commit ff60c1a into master Oct 8, 2021
@icinga-probot icinga-probot bot deleted the bugfix/typo-8766 branch October 8, 2021 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misleading error message when reading CN from peer certificate fails
2 participants