Subject: | Access to X509 cert data (when using IO::Socket::SSL) |
Hi there!
I use IO::Socket::SSL to connect to an SSL server. The IO::Socket::SSL
man page suggests that one can use their $sslclient->peer_certificate to
get access to the certificate:
"If no field is given the internal representation of certificate from
Net::SSLeay is returned."
Unfortunately, this internal representation only seems to be an integer
number, while I expected to get an object containing the actual SSL
certificate. I need the certificate in order to read the key length and
extended X509 attributes.
A Perl hacker from #perl on Freenode told me after brief analysis of
Net::SSLeay that it looks like access to the certificate via Net::SSLeay
is currently impossible, so I'm placing this as a feature request.
Maybe you can add the functionality if you find the time to, or let me
know whether there is an alternative way to access the certificate.
Kind regards & thanks for your time,
-martin