Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does perl IO::Socket::SSL support SSLKEYLOGFILE?

Tags:

ssl

perl

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.

like image 842
Frank Bergemann Avatar asked Jan 19 '26 04:01

Frank Bergemann


1 Answers

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.

like image 79
Steffen Ullrich Avatar answered Jan 22 '26 19:01

Steffen Ullrich