Skip to main content

handle_print_cert_hash

Function handle_print_cert_hash 

Source
pub fn handle_print_cert_hash(quic_config: &QuicConfig) -> Result<()>
Expand description

Handle --print-cert-hash — output the SHA-256 hash of the QUIC certificate.

Loads or generates the TLS certificate from QuicConfig and prints the base64-encoded SHA-256 hash, suitable for use in the browser’s serverCertificateHashes WebTransport option.