pub fn generate_self_signed(domain: &str) -> Result<CertificateData, TlsError>Expand description
Generate a self-signed certificate for the given domain.
Intended for testing and local development only. The certificate uses Ed25519 (via rcgen defaults) and is valid for 365 days.
ยงErrors
Returns TlsError::Certificate if certificate generation fails.