See the QuickRef in the Net::SSLeay package for more details, but you could get the X509 certificate by smth like this:
Net::SSLeay::PEM_get_string_X509( $CLIENT->peer_certificate() ).
$CLIENT->peer_certificate() returns integer number which represents a certificate from the cert-store