Skip to content
instance method

OpenSSL::SSL::SSLSocket#peer_cert

() -> ::OpenSSL::X509::Certificate?
ssl.peer_cert => cert or nil

The X509 certificate for this socket’s peer.