How can i record in perl IO::Socket:SSL the used SSL keys for decryption in wireshark?
E.g. with curl or chrome i can use environment variable $SSLKEYLOGFILE for this.
In short: there is currently no support for this.
IO::Socket::SSL uses Net::SSLeay for the SSL support which itself is using OpenSSL as the library implementing TLS. There is no direct support for SSLKEYLOGFILE in OpenSSL. There is a function SSL_CTX_set_keylog_callback starting with OpenSSL 1.1.1 which can be used to implement the necessary functionality. But this function is not accessible from Net::SSLeay and thus not from IO::Socket::SSL or any other perl-only code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With