Skip to content

Commit

Permalink
logging for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrence-forooghian committed May 14, 2024
1 parent b7a70ad commit 809ff8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/em-http/http_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def ssl_handshake_completed
# server has demonstrated that they hold the private key for.
server_certificate = OpenSSL::X509::Certificate.new(get_peer_cert)

puts("server_certificate is:\n#{server_certificate}\npeer_certificate_chain is:\n#{@peer_certificate_chain.map(&:to_s).join("\n")}")

# A sense check to confirm my understanding of what’s in @peer_certificate_chain.
#
# (As mentioned above, unless something has gone very wrong, these two
Expand Down

0 comments on commit 809ff8c

Please sign in to comment.