Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TLSServer: Add peer information to error log message
When a client with invalid TLS certificates is trying to connect, following logs will be outputted repeatedly, but it doesn't include peer information. It's hard to investigate which client has the problem. 2021-03-31 08:08:58 +0000 [warn]: #1 unexpected error before accepting TLS connection by OpenSSL error_class=OpenSSL::SSL::SSLError error="SSL_accept SYSCALL returned=5 errno=0 state=SSLv3/TLS write server done" 2021-03-31 08:08:58 +0000 [warn]: #1 unexpected error before accepting TLS connection by OpenSSL error_class=OpenSSL::SSL::SSLError error="SSL_accept returned=1 errno=0 state=error: sslv3 alert bad certificate" 2021-03-31 08:08:58 +0000 [warn]: #0 unexpected error before accepting TLS connection by OpenSSL error_class=OpenSSL::SSL::SSLError error="SSL_accept returned=1 errno=0 state=error: sslv3 alert bad certificate" Signed-off-by: Takuro Ashie <[email protected]>
- Loading branch information