API for TLS data

I am looking for API to get the TLS session data (e.g. the negotiation protocol version). Is there any way (API or any other way) to get such data to viewe it my extension?

https://bugzilla.mozilla.org/show_bug.cgi?id=1322748

Thanks. I saw it. But this seems just a request as mine. Is there any API or any way to that?

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