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

Feature Request: Log SSL events #331

Closed
dcornejo opened this issue May 18, 2022 · 2 comments
Closed

Feature Request: Log SSL events #331

dcornejo opened this issue May 18, 2022 · 2 comments

Comments

@dcornejo
Copy link
Contributor

For security audit we should log all connections to the HTTP server.

SSL failures should be logged at a higher severity level (maybe Error) so that they can be filtered from successes (Info or Notice?).

@olofhagsand
Copy link
Member

Can you please provide examples?
Potential candidates are

  1. in read_ssl():;
    clicon_log(LOG_WARNING, "%s SSL_read(): %s", FUNCTION, strerror(errno));
  2. in errors from SSL_write in native_buf_write()
    etc.

olofhagsand added a commit that referenced this issue Jun 8, 2022
  * Added syslog NOTICE on failed user certs
@olofhagsand
Copy link
Member

Added syslog on NOTICE level for failed cert verification.
Example:

Jun  8 13:11:11 Alarik clixon_restconf[17371]: Cert error: /CN=limited/emailAddress=limited@foo.bar/O=Clixon/L=Stockholm/C=SE: certificate has expired

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants