http://www.perlmonks.org?node_id=70646


in reply to How can I access the Web Site Certificate with perl

From the Net::SSLeay documentation:
dump_peer_certificate() allows you to get plaintext description of the certificate the peer (usually server) presented to us.