Open
Description
Hello,
I'm trying to use rust-native-tls
to setup a bare tls connection that would require client to provide a certificate, however I have not found a way of doing this with TlsAcceptor
. There doesn't seem to be a way to set the verification mode and depth.
Using openssl s_server -accept *:10000 -cert server.pem -key server.pem -verify 10 -CAfile root-ca.crt
, I can see that when providing a cert on the TlsConnectorBuilder
, the client sends the certificate.
The peer_certificate()
on the call always return Ok(None), and the server never requests the certificate.
Looking at the tests, requesting the client's certificate doesn't seem to be supported.
Line 140 in 75e43da
Would you welcome a PR?
Metadata
Metadata
Assignees
Labels
No labels