i've written tls parser library in c++ need write unit tests for. library fed tls data stream , invokes various callbacks on events in tls protocol. i'm searching python implementation of tls protocol both client , server sides allow me create several deterministic , reproducible tls data connections parameters of choosing (cipher suites, certificates, transmitting different tls protocol messages, etc) , simultaneously dump traffic in raw binary file.
does twisted allow me create such test setup , if there code sample available me jump start project?
ultimately twisted speak tls transport , dump bytes it; can specify pyopenssl context object configured like. more of question pyopenssl or cryptography.
the tls handshake involves generating random data (session keys) @ various points. while think possible make openssl deterministic plugging in special engine
generates non-random random data, use-case twisted tls toolchain not geared towards. (for example, randomness global in openssl, though other parts of ssl stack local ssl_ctx
.)
Comments
Post a Comment