Struct rustls::server::AllowAnyAuthenticatedClient
source · pub struct AllowAnyAuthenticatedClient { /* private fields */ }
Expand description
A ClientCertVerifier
that will ensure that every client provides a trusted
certificate, without any name checking. Optionally, client certificates will
have their revocation status checked using the DER encoded CRLs provided.
Implementations§
source§impl AllowAnyAuthenticatedClient
impl AllowAnyAuthenticatedClient
sourcepub fn new(roots: RootCertStore) -> Self
pub fn new(roots: RootCertStore) -> Self
Construct a new AllowAnyAuthenticatedClient
.
roots
is the list of trust anchors to use for certificate validation.
sourcepub fn with_crls(
self,
crls: impl IntoIterator<Item = UnparsedCertRevocationList>
) -> Result<Self, CertRevocationListError>
pub fn with_crls( self, crls: impl IntoIterator<Item = UnparsedCertRevocationList> ) -> Result<Self, CertRevocationListError>
Update the verifier to validate client certificates against the provided DER format unparsed certificate revocation lists (CRLs).