32 std::chrono::system_clock::time_point
notAfter;
36 std::vector<CertChainLink>
chain;
46std::expected<CertInfo, std::string>
readCertInfo(
const std::string& certPath);
Definition cert_info.cc:13
std::expected< CertInfo, std::string > readCertInfo(const std::string &certPath)
Parses a PEM file and extracts the leaf's validity window and the full certificate chain.
Definition cert_info.cc:64
constexpr int kCertExpiringSoonDays
Number of days before notAfter at which a certificate is considered "expiring soon"....
Definition cert_info.h:15
One certificate in the served chain — its subject/issuer common names plus the issuing organization (...
Definition cert_info.h:20
std::string issuer
Issuer common name (CN) — the subject of the next link up.
Definition cert_info.h:22
std::string issuerOrganization
Issuer organization (O) — names the next link's/root's org.
Definition cert_info.h:24
std::string subject
Subject common name (CN).
Definition cert_info.h:21
std::string organization
Subject organization (O), e.g. "Let's Encrypt"; "" if absent.
Definition cert_info.h:23
Validity window and identity of a TLS leaf certificate, plus the full served chain.
Definition cert_info.h:28
std::chrono::system_clock::time_point notAfter
Definition cert_info.h:32
std::vector< CertChainLink > chain
Definition cert_info.h:36
std::string subject
Leaf subject common name (CN), e.g. "local.motion-master...".
Definition cert_info.h:29
std::chrono::system_clock::time_point notBefore
Start of the leaf's validity window.
Definition cert_info.h:31
std::string issuer
Leaf issuer common name (CN) — the immediate (intermediate) CA.
Definition cert_info.h:30