Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

OpenSSL::SSL::SSLSocket#peer_cert_chain

() -> ::Array[::OpenSSL::X509::Certificate]?
ssl.peer_cert_chain => [cert, ...] or nil

The X509 certificate chain for this socket’s peer.