Skip to content

Commit f27ce6e

Browse files
committed
sysadmin/wireshark-https: add example of setting option tls.keylog_file
It is actually not so straightforward to come up with the right invocation of option -o to configure the TLS keylog file.
1 parent 051dea7 commit f27ce6e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sysadmin/wireshark-https.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,18 @@ For example:
1717
1818
# Capture network traffic
1919
tshark -ni any -w capture.pcapng
20-
20+
2121
# Perform a request to a HTTPS website, for example with curl
2222
SSLKEYLOGFILE=keylogfile.txt curl https://wiki.wireshark.org/
2323
2424
# Merge the secrets in the Decryption Secrets Block part of the capture file
2525
editcap --inject-secrets tls,keylogfile.txt capture.pcapng capture-with-secrets.pcapng
2626
27+
# It is also possible to live-capture with the keylogfile
28+
# Option -V -O http displays packet details for (decrypted) HTTP
29+
# Option -x displays hexadecimal data
30+
tshark -ni any -f 'tcp port 443' -o tls.keylog_file:keylogfile.txt -V -O http -x
31+
2732
The keylogfile then looks like (for TLS 1.3):
2833

2934
.. code-block:: text

0 commit comments

Comments
 (0)