Add feature/example to generate NSS-like log for wireshark
Description
- Type: Enhancement\Feature Request
- Priority: Minor
Enhancement\Feature Request
Suggested enhancement
Wireshark has a feature to decrypt content of TLS connections, which obviously needs cooperation from the library (except for pure-RSA key exchange). This cooperation takes the form of a log file whose format is described here.
Mbed TLS should offer an easy solution to write such a log file. This could be implemented either as part of the library of as part of an example program (most probably programs/ssl/ssl_{client,server2}.c).
Justification - why does the library need this feature?
- Our users want it https://github.com/ARMmbed/mbedtls/pull/1483 and at least one already wrote their own version of it: https://github.com/Lekensteyn/mbedtls/commit/68aea15833e1ac9290b8f52a4223fb4585fb3986
- It would make our own life easier for debugging with wireshark (eg renegotiation where the new handshake is encrypted) - I remember creating a NSS keylog manually form Mbed TLS's debug output in the past, obviously an automated way would be more efficient.
Any update to this feature? It's five years passed... Wolfssl already have this feature.
@xenkuo Apart from TLS 1.3, we currently have a heavy focus on crypto, so we have very little time to work on TLS. This is likely to last for another year or so.
Hi, I want to bump up this topic because as someone who debugs apps utilizing MbedTLS, I would also like to be able to debug TLS traffic. :)