tempesta-tech / tempesta

All-in-one solution for high performance web content delivery and advanced protection against DDoS and web attacks
https://tempesta-tech.com/
GNU General Public License v2.0
615 stars 103 forks source link

TLS: save temporary server keys #2210

Open RomanBelozerov opened 1 month ago

RomanBelozerov commented 1 month ago

In some cases, we need to decrypt TLS traffic and we don't have access to temporary client keys. So we should add directive for saving temporary server keys because TempestaFW uses PFS and we cannot decrypt traffic without them.

Documentation

Please, add info to Development-guidelines page.

krizhanovsky commented 1 month ago

This could be not so easy to design. TLS handshakes happen in softirq, so we can not do any filesystem related operations there. Probably, we can use some virtual filesystem interfaces like /proc or store the keys in a shared memory and later on "some" event dump them.