I tried to implement the trait ClientCertVerifier, I need the method that check the client certificate the problem is when I write this block of code
impl ClientCertVerifier for rustls::NoClientAuth {
fn verify_client_cert(
&self,
presented_certs: &[Certificate],
sni: Option<&DNSName>,
) -> Result<ClientCertVerified, TLSError> {
// My code to check the ceritificate
todo!()
}
}
I get this error :
conflicting implementations of trait
rustls::ClientCertVerifierfor typerustls::NoClientAuth:
conflicting implementation in craterustls:
- impl ClientCertVerifier for NoClientAuth;
What I'm doing wrong ?