class Puma::LogWriter

def ssl_error(error, ssl_socket)

Parameters:
  • ssl_socket (Puma::MiniSSL::Socket) --
  • error (Puma::MiniSSL::SSLError) --
def ssl_error(error, ssl_socket)
  peeraddr = ssl_socket.peeraddr.last rescue "<unknown>"
  peercert = ssl_socket.peercert
  subject = peercert&.subject
  @error_logger.info(error: error, text: "SSL error, peer: #{peeraddr}, peer cert: #{subject}")
end