Skip to main content

Module certs

Module certs 

Source
Expand description

Certificate related types and functions for an arti relay.

Re-exportsยง

use tor_cert::CertEncodeError; ๐Ÿ”’
use tor_cert::CertType; ๐Ÿ”’
use tor_cert::CertifiedKey; ๐Ÿ”’
use tor_cert::Ed25519Cert; ๐Ÿ”’
use tor_cert::EncodedEd25519Cert; ๐Ÿ”’
use tor_checkable::SelfSigned; ๐Ÿ”’
use tor_checkable::TimeBound; ๐Ÿ”’
use tor_key_forge::InvalidCertError; ๐Ÿ”’
use tor_key_forge::ParsedEd25519Cert; ๐Ÿ”’
use tor_key_forge::ToEncodableCert; ๐Ÿ”’
use tor_llcrypto::pk::ed25519; ๐Ÿ”’
use tor_llcrypto::pk::ed25519::Ed25519Identity; ๐Ÿ”’
use web_time_compat::SystemTime; ๐Ÿ”’
use web_time_compat::SystemTimeExt; ๐Ÿ”’
use crate::pk::RelayIdentityKeypair; ๐Ÿ”’
use crate::pk::RelayLinkSigningKeypair; ๐Ÿ”’
use crate::pk::RelaySigningKeypair; ๐Ÿ”’

Structsยง

RelayLinkSigningKeyCert
Certificate for the short-term signing keypair for link authentication.
RelaySigningKeyCert
Certificate for the medium-term relay signing key (K_relaysign_ed).

Functionsยง

gen_link_cert
Generate the relay link certificate from the given relay signing keypair and the relay link keypair.
gen_signing_cert
Generate the relay signing certificate from the given relay identity keypair and the relay signing keypair.
gen_tls_cert
Generate the signed TLS certificate from the given relay signing keypair and the TLS cert digest.
validate_ed25519_cert ๐Ÿ”’
Validate the specified cert, checking that