-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netty: add exporting SSL/TLS master key log feature (#7724)
Enable this feature by setting the system property -Dio.netty.ssl.masterKeyHandler=true or System.setProperty(SslMasterKeyHandler.SYSTEM_PROP_KEY, "true"); The keys will be written to the log named "io.netty.wireshark" in the warnning level. To export the keys to a file, you can configure log factory like: (with log4j.xml for example) <appender name="key-file" class="org.apache.log4j.RollingFileAppender"> <param name="file" value="d:/keyfile.txt"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%m%n"/> </layout> </appender> <category name="io.netty.wireshark"> <priority value="DEBUG" /> <appender-ref ref="key-file" /> </category> Wireshark can analyze the messages gRPC over TLS with this key log file. close #7199
- Loading branch information
1 parent
2dba43c
commit 9bc05fb
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters