Crate pingora_rustls

Source
Expand description

This module contains all the rustls specific pingora integration for things like loading certificates and private keys

Modules§

version
All defined protocol versions appear in this module.

Structs§

Accept
Future returned from TlsAcceptor::accept which will resolve once the accept handshake has finished.
CertificateDer
A DER-encoded X.509 certificate; as specified in RFC 5280
ClientConfig
Common configuration for (typically) all connections made by a program.
ClientTlsStream
A wrapper around an underlying raw stream which implements the TLS or SSL protocol.
Connect
Future returned from TlsConnector::connect which will resolve once the connection handshake has finished.
Ellipses
NoDebug
Wraps a type T and provides a Debug impl that does not rely on T being Debug.
RootCertStore
A container for root certificates able to provide a root-of-trust for connection authentication.
ServerConfig
Common configuration for a set of server sessions.
ServerTlsStream
A wrapper around an underlying raw stream which implements the TLS or SSL protocol.
Stream
This type implements io::Read and io::Write, encapsulating a Connection C and an underlying transport T, such as a socket.
TlsAcceptor
A wrapper around a rustls::ServerConfig, providing an async accept method.
TlsConnector
A wrapper around a rustls::ClientConfig, providing an async connect method.
WithTypeInfo

Enums§

PrivateKeyDer
A DER-encoded X.509 private key, in one of several formats
ServerName
Encodes ways a client can know the expected name of the server.
TlsStream
Unified TLS stream type

Functions§

hash_certificate
load_ca_file_into_store
Load the certificates from the given pem file path into the given certificate store
load_certs_and_key_files
Load the certificates and private key files
load_native_certs
Load root certificates found in the platform’s native certificate store.
load_pem_file_ca
Load the certificate
load_pem_file_private_key
load_platform_certs_incl_env_into_store
Attempt to load the native cas into the given root-certificate store