.. _mozilla_projects_nss_key_log_format: NSS Key Log Format ================== .. container:: Key logs can be written by NSS so that external programs can decrypt TLS connections. Wireshark 1.6.0 and above can use these log files to decrypt packets. You can tell Wireshark where to find the key file via *Edit→Preferences→Protocols→TLS→(Pre)-Master-Secret log filename*. Key logging is enabled by setting the environment variable ``SSLKEYLOGFILE`` to point to a file. Note: starting with :ref:`mozilla_projects_nss_nss_3_24_release_notes` (used by Firefox 48 and 49 only), the ``SSLKEYLOGFILE`` approach is disabled by default for optimized builds using the Makefile (those using gyp via ``build.sh`` are *not* affected). Distributors can re-enable it at compile time though (using the ``NSS_ALLOW_SSLKEYLOGFILE=1`` make variable) which is done for the official Firefox binaries. (See `bug 1188657 `__.) Notably, Debian does not have this option enabled, see `Debian bug 842292 `__. This key log file is a series of lines. Comment lines begin with a sharp character ('#') and are ignored. Secrets follow the format ``