hyper-rustls icon indicating copy to clipboard operation
hyper-rustls copied to clipboard

Cannot access peer certificates with example's TlsStream

Open moshec2 opened this issue 2 years ago • 7 comments

In the example's TlsStream, you cannot access the peer certificates from tokio_rustls's TlsStream in make_service_fn, even if you try to expose the state property, it's basically always Handshaking. Is there some way to change the example so you could wait until the handshaking is over so you can access this?

moshec2 avatar Mar 22 '23 01:03 moshec2