Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
mm::CertInfo Struct Reference

Validity window and identity of a TLS leaf certificate, plus the full served chain. More...

#include <cert_info.h>

Collaboration diagram for mm::CertInfo:
[legend]

Public Attributes

std::string subject
 Leaf subject common name (CN), e.g. "local.motion-master...".
 
std::string issuer
 
std::vector< std::string > dnsNames
 
std::chrono::system_clock::time_point notBefore
 Start of the leaf's validity window.
 
std::chrono::system_clock::time_point notAfter
 
std::vector< CertChainLinkchain
 

Detailed Description

Validity window and identity of a TLS leaf certificate, plus the full served chain.

Member Data Documentation

◆ chain

std::vector<CertChainLink> mm::CertInfo::chain

Every certificate present in the PEM file, leaf first, in chain order (leaf → intermediate(s)). A fullchain PEM usually stops at the intermediate; the root is in the OS trust store and not transmitted, but the last link's issuer still names it.

◆ dnsNames

std::vector<std::string> mm::CertInfo::dnsNames

The leaf's subjectAltName dNSName entries — the hostnames the certificate is actually valid for, and what a browser checks (the CN is legacy and ignored). The bundled certificate lists both the loopback name and the LAN wildcard, so this is what tells a user whether the host they are typing is covered.

◆ issuer

std::string mm::CertInfo::issuer

Leaf issuer common name (CN) — the immediate (intermediate) CA.

◆ notAfter

std::chrono::system_clock::time_point mm::CertInfo::notAfter

End of the leaf's validity window (expiry).

◆ notBefore

std::chrono::system_clock::time_point mm::CertInfo::notBefore

Start of the leaf's validity window.

◆ subject

std::string mm::CertInfo::subject

Leaf subject common name (CN), e.g. "local.motion-master...".


The documentation for this struct was generated from the following file: