HF RL Explorer

Redundant leaf certificate parsing during TLS handshake leads to memory leak and performance regression

Redundant leaf certificate parsing during TLS handshake leads to memory leak and performance regression: a task in LegoFlow-SWE (Harbor dataset). When a TLS handshake is performed, the leaf certificate’s ASN.1 DER bytes (stored as an s2n blob ) are parsed into an X509 object multiple times. This…

The task

When a TLS handshake is performed, the leaf certificate’s ASN.1 DER bytes (stored as an `s2n_blob`) are parsed into an X509 object multiple times. This redundant parsing shows up in two places:

Part of Lego-X/LegoFlow-SWE.