-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tokio-tls should expose methods on TlsStream #1383
Comments
It seems that this was possible in v0.2.1 but in the latest alpha version the same function now drops straight down to the underlying inner stream. Was this an intentional reversion? I would very much like access to the certificates of Tls connections. |
I'd like to bump this. Ran into this issue as well, I would also like to access the underlying certificates, and other native tls methods on TlsStream would be handy. I had to hack up the library to get them. |
Any update on this? Would you accept a PR that added additional methods to get the native tls stream? |
cc @LucioFranco |
@aloucks sure! we are currently in the process of moving things to |
I’ve upgraded to the latest version and this works fine for me. This issue can be closed, thanks! |
Hey @campbellC , would you mind sharing your example? |
@hbobenicio sure - I'm using this here to pull out the certificate and then spoof the contents for a man-in-the-middle proxy clone that I'm writing. |
Version
master
Subcrates
tokio-tls
Description
native_tls::TlsStream
has various methods defined to access the underlying stream, the peer's certificate, and channel binding information. Now thattokio_tls::TlsStream
doesn't publicly expose the innernative_tls
stream, it will need to directly define equivalent methods.https://docs.rs/native-tls/0.2.3/native_tls/struct.TlsStream.html
The text was updated successfully, but these errors were encountered: