in reply to Examining SSL Certificates of SMTP hosts using Perl
IO::Socket::SSL uses Net::SSLeay as its wrapper around OpenSSL. The POD for the latter says it doesn't have a complete x509 interface and that dump_peer_certificate returns "selected" information.
There is a low-level routine in Net::SSLeay called sslcat that does more general things, including grabbing the whole certificate.
Perhaps using the lower-level Net::SSLeay stuff will get you a certificate you can save to a temp file and specify to Crypt::OpenSSL::X509. I haven't tried it, but that's where I'd start based on the docs for these three modules.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Examining SSL Certificates of SMTP hosts using Perl
by Anonymous Monk on Feb 18, 2009 at 13:09 UTC |