Module server
Available on crate feature
tls only.Expand description
TLS implementation agnostic server types
Structs§
- Certificate
Authority Data - An issuing CA chain and its private key.
- Certificate
Issuance Context - Inputs available to a dynamic certificate issuer for one handshake.
- Certificate
Subject - X.509 subject metadata. Service identities belong in SANs, not the CN.
- Certificate
Validity - Validity policy relative to certificate generation time.
- Input
With Client Hello - An
inputwith a Client Hello (tls) attached to it, usually used in combination withPeekTlsClientHelloService. - Leaf
Cert Config - Reusable policy for an end-entity server certificate.
- Leaf
Cert Request - One concrete leaf-certificate request.
- NoTls
Reject Error - non-tls connection is rejected
- Peek
TlsClient Hello Service - A peek
Servicewhich returns theClientHelloto the inner service for tls-detected traffic, and otherwise make use of the Reject service. - Self
Signed CaConfig - Configuration for a generated self-signed certificate authority.
- Server
Auth Data - Raw private key and certificate data to facilitate server authentication.
- SniRequest
- A request ready for SNI routing,
usually used in combination with
SniRouter. - SniRouter
- A
Servicerouter that can be used to support routing of tls traffic as well as non-tls traffic. - TlsClient
Verify - How the client is verified (mTLS).
- TlsPeek
Router - A
Servicerouter that can be used to support tls traffic as well as non-tls traffic. - TlsServer
Auth - Server auth (cert chain + key) to use, as configured on
TlsServerConfig. - TlsServer
Config - A backend agnostic TLS server config
- TlsStore
Client Cert Chain - Whether to capture the client certificate chain into
NegotiatedTlsParameters.
Enums§
- Certificate
Identity - DNS or IP service identity encoded in a certificate’s SAN extension.
- Certificate
KeyKind - Key algorithm to use when generating a self-signed key pair.
- Client
Verify Mode - Mode of client verification by a (tls) server
- Generated
Server Auth Config - Configuration for generating static server-authentication material.
Traits§
- Dynamic
Cert Issuer - Trait that needs to be implemented by cert issuers to support dynamically issueing (external) certs based on client_hello input.
Functions§
- peek_
client_ hello_ from_ input - Functional API to try to peek TLS:CH from an existing I/O input, returning the stream as-is with the read data prefixed from memory.
- peek_
client_ hello_ from_ input_ with_ timeout_ policy - Functional API to try to peek a TLS ClientHello with an explicit timeout policy, returning the stream with every consumed byte prefixed from memory.
Type Aliases§
- SniPrefixed
Io PrefixedIoalias used bySniRouter.- TlsClient
Hello Prefixed Io PrefixedIoalias used byPeekTlsClientHelloService.- TlsPrefixed
Io PrefixedIoalias used byTlsPeekRouter.