Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SSL_CTX_set_keylog_callback() sets the TLS key logging callback. This callback is called whenever TLS key material is generated or received, in order to allow applications to store this keying material for debugging purposes. Manpage OpenSSL: https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set_keylog_callback.html SSL_CTX_set_keylog_callback is added to OpenSSL_1_1_1-pre1 openssl/openssl@2faa1b4 Debugging use-case: Use Wireshark to inspect the MQTT connection at the packet level. It is helpful to decrypt the TLS packets. For this Wireshark needs the (Pre-) Master Secret. With this commit you can set the environment variable SSLKEYLOGFILE, give Wireshark the file and examine the decrypted MQTT packets. https://wiki.wireshark.org/TLS Signed-off-by: Patrick Mueller <[email protected]>
- Loading branch information