RFR: 8262880: Add support for the NSS Key Log Format for SSL/TLS keys

Xue-Lei Andrew Fan xuelei at openjdk.java.net
Thu Mar 11 16:36:09 UTC 2021


On Tue, 9 Mar 2021 17:18:39 GMT, SalusaSecondus <github.com+829871+SalusaSecondus at openjdk.org> wrote:

> This is my implementation for [JDK-8262880](https://bugs.openjdk.java.net/browse/JDK-8262880) and enables creating of an SSL/TLS key log in the standardized [NSS Key Log Format](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Key_Log_Format). This is supported by many TLS implementations and also by several parsers such as Wireshark. Supporting this will greatly ease in debugging TLS problems.
> 
> (Note: I am covered by the Amazon corporate contribution agreement).

It is not good practice to leave secret information in debug log. Also, it may be not a good practice to introduce new logger format, including file and NSS format, into the SSLLogger.  Someone also may want to introduce log format for MSS or XSS as well. Instead, please consider to make use of the features of Java Logger if you want to write the log to files, or use any special format.

-------------

Changes requested by xuelei (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/2896



More information about the security-dev mailing list