StructsΒ§
- CliCert
Verifier π - Srvr
Cert πVerifier
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_certso the validation rules stay in one place. ReturnsNoneif 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.