Skip to content
Snippets Groups Projects
Select Git revision
  • 4.1 default protected
  • master
  • ssl_cache_revamp
  • ssl_cache_again
  • inflater_jdk11
  • brotli-decompressor
  • io-uring
  • benchmark
  • compile_workaround_iouring
  • writev_iouring
  • fix_prop_name
  • unlink_handler
  • handler_removed
  • ignore_header_data_wip
  • drop-npn
  • 4.0
  • writability
  • 3.10
  • master_deprecated
  • 3.9
  • netty-4.1.59.Final
  • netty-4.1.58.Final
  • netty-4.1.57.Final
  • netty-4.1.56.Final
  • netty-4.1.55.Final
  • netty-4.1.54.Final
  • netty-4.1.53.Final
  • netty-4.1.52.Final
  • netty-4.1.51.Final
  • netty-4.1.50.Final
  • netty-4.1.49.Final
  • netty-4.1.48.Final
  • netty-4.1.47.Final
  • netty-4.1.46.Final
  • netty-4.1.45.Final
  • netty-4.1.44.Final
  • netty-4.1.43.Final
  • netty-4.1.42.Final
  • netty-4.1.41.Final
  • netty-4.1.40.Final
40 results

netty

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Farid Zakaria authored
    Motivation
    
    Debugging SSL/TLS connections through wireshark is a pain -- if the cipher used involves Diffie-Hellman then it is essentially impossible unless you can have the client dump out the master key [1]
    
    This is a work-in-progress change (tests & comments to come!) that introduces a new handler you can set on the SslContext to receive the master key & session id. I'm hoping to get feedback if a change in this vein would be welcomed.
    
    An implementation that conforms to Wireshark's NSS key log[2] file is also included.
    
    Depending on feedback on the PR going forward I am planning to "clean it up" by adding documentation, example server & tests. Implementation will need to be finished as well for retrieving the master key from the OpenSSL context.
    
    [1] https://jimshaver.net/2015/02/11/decrypting-tls-browser-traffic-with-wireshark-the-easy-way/
    [2] https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Key_Log_Format
    
    
    
    Modification
    
    - Added SslMasterKeyHandler
    - An implementation of the handler that conforms to Wireshark's key log format is included.
    
    Result:
    
    Be able to debug SSL / TLS connections more easily.
    
    Signed-off-by: default avatarFarid Zakaria <farid.m.zakaria@gmail.com>
    7fc355aa
    History
    Name Last commit Last update