Motion Master 6.0.0-alpha.50
Next-generation motion control software
Loading...
Searching...
No Matches
cert_info.h File Reference
#include <chrono>
#include <expected>
#include <string>
#include <vector>
Include dependency graph for cert_info.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mm::CertChainLink
 One certificate in the served chain — its subject/issuer common names plus the issuing organization (the friendly CA name, e.g. "Let's Encrypt", which lives in the O field rather than the CN). More...
 
struct  mm::CertInfo
 Validity window and identity of a TLS leaf certificate, plus the full served chain. More...
 

Namespaces

namespace  mm
 

Functions

std::expected< CertInfo, std::string > mm::readCertInfo (const std::string &certPath)
 Parses a PEM file and extracts the leaf's validity window and the full certificate chain.
 

Variables

constexpr int mm::kCertExpiringSoonDays = 7
 Number of days before notAfter at which a certificate is considered "expiring soon". A cert inside this window is refreshed proactively: it is one of the conditions that trigger the startup self-heal fetch (healCertIfNeeded), so a cert is renewed before it lapses rather than after. Also logs a startup warning and sets the expiresSoon flag returned by GET /api/cert.