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

logsrvd,plugins/sudoers: add debug log on TLS verification error #375

Merged
merged 1 commit into from
May 17, 2024

Conversation

manner82
Copy link
Contributor

I have accidentally generated wrong certificate for the sudo_logsrvd client for TLS communication (it was for a server and not a client), and felt it a bit hard to debug what the problem could be. Ended up adding these log messages, I think they could be useful.

Example message looks like this:

May 15 12:13:15.611 sudo_logsrvd[23971] TLS verification failed for cert '/C=US/ST=Utah/O=sudo/OU=sudo Audit Server/CN=QPM': '26:unsupported certificate purpose' @ verify_peer_identity() ./logsrvd.c:1271

Copy link
Collaborator

@millert millert left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@millert millert merged commit ba29f54 into sudo-project:main May 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants