Skip to main content

Module tls_config

Module tls_config 

Source

StructsΒ§

CliCertVerifier πŸ”’
SrvrCertVerifier πŸ”’

ConstantsΒ§

BAD_ENCODING_ERR πŸ”’
BAD_SIGNATURE_ERR πŸ”’
PEER_ID_EXT_OID πŸ”’
OID for the karyon peer-id custom extension.

StaticsΒ§

CIPHER_SUITES πŸ”’
KX_GROUPS πŸ”’
PROTOCOL_VERSIONS πŸ”’
SIGNATURE_SCHEMES πŸ”’

FunctionsΒ§

generate_cert πŸ”’
Generates a certificate and returns both the certificate and the private key.
parse_cert πŸ”’
Parses the given x509 certificate.
peer_id_from_certs πŸ”’
Derive the peer id from a peer’s certificate chain post-handshake. Reuses verify_cert so the validation rules stay in one place. Returns None if the chain is empty or the cert lacks our extension.
tls_client_config
Returns a TLS client configuration.
tls_server_config
Returns a TLS server configuration.
verify_cert πŸ”’
Verifies the given certification.
verify_cert_signature πŸ”’
Verifies the signature of the given certificate.