Twiggy::TLS::Info - TLS connection information
In PSGI application:
warn "Client's CommonName: " . $env->{"psgi.tls"}->client_certificate('cn'); warn "Used cipher: " . $env->{"psgi.tls"}->cipher;
Retrieve value from client certificate. If no field is given the internal representation of certificate from Net::SSLeay is returned. The list of fields can be found in IO::Socket::SSL peer_certificate method documentation.
peer_certificate
Returns the string form of the cipher used for current connection.
To install Twiggy::TLS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Twiggy::TLS
CPAN shell
perl -MCPAN -e shell install Twiggy::TLS
For more information on module installation, please visit the detailed CPAN module installation guide.