Open
Description
In the case of X509 client verification, we want to get the certificate of client to extract some extra info(email, name, ...)
but ServerSession is not for public use. https://github.com/async-rs/async-tls/blob/master/src/server.rs#L20
Is it a good idea to have some code like:
impl<IO> TlsStream<IO> {
pub fn peer_certificates(&self) -> Option<Vec<Certificate>> {
self.session.get_peer_certificates()
}
}
Metadata
Metadata
Assignees
Labels
No labels