Expand description
The viewer listener’s certificate: self-signed ECDSA P-256, made once and kept in this instance’s data directory, so its fingerprint (the one a paired device pinned from the QR) survives restarts. No CA is involved and nothing about the certificate itself is trusted; only the fingerprint is.
Structs§
- Viewer
Tls - The certificate in use, its key and its fingerprint.
Constants§
Functions§
- cert_
dir - The certificate directory under
data_dir. - fingerprint
- Lowercase hex SHA-256 of a certificate’s DER bytes.
- generate 🔒
- load 🔒
- load_
or_ create - Load the certificate kept under
data_dir, or make and keep a new one when there is none or what is there can’t be used. - store 🔒
- Write both files through a temporary name, the key readable by this user only where the platform has modes.
- write_
atomic 🔒