Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 878 Bytes

File metadata and controls

27 lines (18 loc) · 878 Bytes

libsslkeylogfile

This library is designed for retrieve master secret in TLS sessions in Mozilla NSS format

Requirements

  • OpenSSL 1.1.1 or greater - The API required, SSL_CTX_set_keylog_callback, is not available with version below 1.1.1
  • SSL-enabled program utilises OpenSSL and dynamically linked to libssl

Build

cd /path/to/libsslkeylogfile
make

libsslkeylogfile.so will present after a successful build.

Usage

LD_PRELOAD='/path/to/libsslkeylogfile.so' \
LIBSSL_SSLKEYLOGFILE=/tmp/sslkeylogfile \
curl -I https://example.com

Packet capture tools compatible with Mozilla NSS sslkeylogfile, i.e. Wireshark, can be used to inspect payload in TLS traffic after configured.