Expand description
X.509 certificate validity (notBefore/notAfter) and the RFC 9773 ARI certificate id, read with a minimal DER walker — shared by ACME renewal and the TLS certificate-expiry metric, so it isn’t behind a feature. Certificate bytes may come from a CA or a file: every length is checked, nothing panics on malformed input.
Structs§
- Cert
Info - What renewal needs from the leaf certificate: its validity window (Unix seconds) and its ACME Renewal Information certificate identifier (RFC 9773 §4.1), when it has an Authority Key Identifier.
Enums§
- Subject
AltName - A subjectAltName entry rws can match.
Functions§
- base64_
decode_ std - base64url
- cert_
info_ from_ der CertInfofrom a DER certificate. CA-supplied bytes: every length is checked byread_tlv, nothing panics on malformed input.- cert_
info_ from_ pem CertInfoof the first certificate in the PEM file atcert_path;Nonewhen it can’t be read or parsed.CertInfoof the first certificate in PEM text.- days_
since_ epoch - read_
cert_ info - subject_
alt_ names - The DNS and URI names of a DER certificate’s subjectAltName extension
(OID 2.5.29.17);
Nonewhen the certificate can’t be read. Backend certificates are untrusted input: loops only, every read bounded.