Expand description
TLS configuration from a Policy: which versions, cipher suites, key-exchange groups and
handshake signature schemes a provider carries, in preference order.
Structs§
- Certificate
Key - A TLS certificate key: a key of one of the profile’s TLS key algorithms (
Resolved::keys), for a certificate request (csr::generate_csr) and this side’s certificate (Resolved::certified_key). It is held once, as the module’s parsed key (decision 0012), and is notClone; itsDebugprints the algorithm only. It has nosign; it signs through the TLS key provider with the policy’s TLS schemes, and that signer signs whatever bytes it is given (decision 0016, residual 2). Its PKCS#8 export is the private key, which imports as asignature::KeyPaironly under anAdmittedwhose signatures admit the algorithm; what else takes it is decision 0016, residuals 2 and 4. - Client
Verifier Builder - A client-certificate verifier builder preserving hints, authentication and revocation modes.
- Client
Verifier Handle - An owned client-certificate verifier bound to its rule and handshake schemes.
- Peer
Leaf - The end-entity certificate after crypto-profile’s own checks have passed.
- Policy
- What a TLS configuration may use: versions, suites and groups in preference order, and a set of signature schemes. No list may name an entry twice.
- Server
Verifier Builder - A server-certificate verifier builder preserving baseline revocation configuration.
- Server
Verifier Handle - An owned server-certificate verifier bound to its rule and handshake schemes.
Enums§
- Client
Verifier Input - Input to strict server completion. Opaque verifiers are rejection-only.
- Server
Verifier Input - Input to strict client completion. Opaque verifiers are rejection-only.
Traits§
- Peer
Identity - An application’s check of the peer’s identity, run after every crate check has passed.
Functions§
- assert_
provider_ matches - Refuses a provider that does not carry exactly the suites, groups, handshake schemes and
their verifiers, certificate-chain verifiers, random source and key provider that
crypto_provider(p)carries, in its order. Each is compared by identity, so a substitute that reports the same codepoint or algorithm identifiers is refused. - client_
builder - A client configuration builder on
p. - client_
cert_ verifier_ builder - Builds a client-certificate verifier with
p’s canonical identity. - crypto_
provider - A provider carrying exactly
p. It refuses, in this order: an empty version, group or scheme list; a duplicate entry in any list, naming the first one found in versions, suites, groups, then schemes; an unavailable algorithm; and a suite list left empty once suites of unlisted versions are dropped; then, for each listed version in policy order, a version with no suite, no group usable at it, or no scheme a suite at it can sign with, checked in that order (PolicyVersionUnusable). A key loaded through its key provider signs only with a scheme inp.signature_schemes. - install_
default - Installs a provider for
pas the process default; refuses if one is already installed. - load_
private_ key - Loads a private key into a signing key that signs only with a scheme in
p.signature_schemes. The key’s algorithm is not checked against any profile;Resolved::certified_keychecks it. - server_
builder - A server configuration builder on
p. - server_
cert_ verifier_ builder - Builds a server-certificate verifier with
p’s canonical identity. - strict_
client_ builder - Completes a client builder with an owned verifier matching both rule and scheme set.
- strict_
server_ builder - Completes a server builder with an owned verifier matching both rule and scheme set.