Skip to main content

Module tls

Module tls 

Source

StructsΒ§

TlsOptions
The TLS settings of a worker or CLI, as given on the command line.

EnumsΒ§

NameSource πŸ”’
Track what the SAN is authenticated against (based on user parameters).

ConstantsΒ§

CERTIFICATE_LABEL πŸ”’
PEM label of an X.509 certificate (other blocks, e.g. private keys, are ignored).

FunctionsΒ§

certificates πŸ”’
Parse every PEM certificate in pem, in file order.
client_config πŸ”’
Build the client-side TLS configuration from a file of trust anchors.
default_key_path πŸ”’
The private key path implied by a certificate path (same name, .key extension).
describe_served_chain πŸ”’
Parse Orchestrator certificate and warn for possibly malformed certificates.
host_of πŸ”’
Get the hostname/address part of an address:port value
pinned_self_signed_name πŸ”’
Get the name pinned in self-signed certificates.
server_identity
Load the orchestrator’s TLS identity (certificate + private key).
server_name πŸ”’
Determine the name to authenticate the orchestrator as.
subject_alternative_names πŸ”’
Get the SAN values (hostnames and IP addresses) a certificate is valid for.
to_ip πŸ”’
Convert the raw bytes of an IP address SAN into an IpAddr.