API for TLS data

The “repost” has a little more info, btw: How to extract TLS connection data (ssleuth)