paperlined.org
dev > perl
document updated 7 hours ago, on Apr 24, 2025

logging TLS keys

The Wireshark documentation says that it supports TLS-key-logging functionality, that's typically associated with the environment variable $SSLKEYLOGFILE.

But can this be implemented within Perl's libwww? This StackOverflow answer points in the right direction, I believe. The latest documentation for Net::SSLeay now mentions that the function CTX_set_keylog_callback() is exposed. TODO: Explore if I can get this working.

installing a newer version of Net::SSLeay

First, run this command to see if you already have a new enough version is installed locally:

perl -MNet::SSLeay -le 'print $Net::SSLeay::VERSION'

If it's version 1.94 or later, you're all good.

If it needs upgrading, run:

cpan Net::SSLeay

If CPAN says it can't install without the include headers for libopenssl, then run something like this: