-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Allow certificate access on Connecting #1922
Comments
The |
I am interested in having this. I think the implementation should be similar to In an ideal world I'd like to be able to access both handshake data and the peer identity on the server before committing to a |
@Ralith I don't think you can get to the peer identity before committing to config in rustls, and even at the protocol level you'll need to commit to a bunch of configuration values before you get the peer identity, AFAIK? |
Ah, okay. We could still probably do the |
Right, doing an |
I'm writing an application that needs to run some custom checks on a peer's TLS certificate (more specifically on its public key) before accepting a connection. In the current implementation, it seems this data is not available through the
Connecting
struct, only throughConnection
which necessitates accepting the connection beforehand. It seems like this should be doable given thatConnecting
does have access tohandshake_data
, which sources its info from theSession
just likepeer_identity
does.I'll look into implementing this, happy to hear any suggestions or other ways to go about this if any. Thanks!
The text was updated successfully, but these errors were encountered: