Concept and mechanism
Certificate validation requires more than checking that dates remain valid. The client needs to trust the chain, recognize the intended identity, and respect usage restrictions. In a client following RFC 9525, the hostname should match the appropriate subjectAltName identity; commonName does not replace that condition.
When keyUsage and extendedKeyUsage are present, the purpose must satisfy both under RFC 5280. Key management introduces another boundary: rotating AWS_KMS-origin symmetric KMS key material preserves the logical key and earlier material needed for decryption.
It neither automatically re-encrypts data nor replaces an exposed data key.
Guided application
In a fictional decommission, retained backups still depend on a key that appears inactive in billing. Before deletion, map data and establish its recovery destination. Pending deletion already prevents key cryptographic operations; it is not normal use until the final day.
For post-quantum evolution, identify functions instead of swapping names: ML-KEM establishes a shared secret and ML-DSA provides signatures. Integration should consider implementation, parameters, trust, and errata notices without promising absolute immunity.
Finally, performance can change guarantees: TLS 1.3 early data can be replayed. An API with non-idempotent effects needs replay treatment and application rules, not merely channel encryption.
Build the chain without inventing trust
Start by drawing three roles: the leaf identifies the service, intermediates connect issuers, and the anchor represents a consumer trust decision. A certificate received from the server can help build a chain without becoming an authorized trust anchor. This distinction prevents a dangerous incident shortcut: importing everything received merely to remove an error. In the exercise, root.pem is the approved root; intermediate.pem is supplied through -untrusted. That option describes the role accurately: the certificate helps construction but receives no independent trust.
In a fictional fund-processing batch, renewal installs only the leaf. A browser works because it has another way to obtain the intermediate, while the isolated process does not fetch it. Record the chain actually presented and the trust store actually used by that batch. Confirm signature links, constraints and the selected anchor before changing configuration. “Unable to get local issuer” is a chain-building clue, not an instruction to grant additional trust. Repeat the legitimate operation after remediation and retain the negative case using a different root. This makes the change review explain both the restored dependency and the boundary that remains enforced.
Identity includes the name type and depth
The reference identity comes from the service the client intends to contact. It should not silently become a name found inside a certificate or obtained through reverse lookup. A connection to api.funds.test and a direct connection to 192.0.2.10 may reach the same process but use different reference types. Under the RFC 9525 profile, an IP address must match an iPAddress SAN entry. Writing the same digits inside dNSName does not change its type. The lab executes both checks and retains rejection of the incorrectly typed SAN.
A wildcard also has scope. When the specified client permits it, *.funds.test can match api.funds.test; it does not absorb the two labels in eu.api.funds.test. Before issuing certificates for migration, inventory names used by users, probes, integrations and scheduled jobs. Distinguish public names from internal references configured in consumers. Approved issuance should address that inventory and the profile actually in use. Do not use CN as a repair for an unsuitable SAN in an RFC 9525 client. At handover, provide positive and negative examples for each identity type so APS can recognize the enforced boundary.
Purpose, delegation and critical extensions
A chain can have valid signatures while remaining unsuitable for the requested use. In the experiment, client.pem permits clientAuth. The sslclient check passes and sslserver fails for unsuitable purpose. SAN still identifies the same name; it does not grant a different TLS role. During diagnosis, preserve the purpose arguments used by the consumer and do not turn a run without -purpose into evidence of acceptance for every role. Key usage and extended key usage must both be compatible when both are present.
CA constraints matter too. An intermediate with pathLenConstraint=0 does not permit adding another non-self-issued intermediate before the leaf. A name constraint limits namespaces in which a CA can issue even when the leaf matches the requested hostname. In the lab, api.other.test fails under the .funds.test constraint. Finally, an unknown critical extension prevents the validator from establishing that it satisfied the issuer's condition. Correct the profile or consumer support according to the approved contract. Globally ignoring critical extensions may remove exactly the boundary the PKI intended to enforce. Include these checks in issuance-profile review rather than relying solely on a connectivity test.
Time and revocation are separate inputs
Record the instant to which validation applies. The -attime option tests a date without changing the Mac clock or certificate. A leaf accepted today can be rejected at a selected future instant; that does not mean the experiment revoked or modified it. A CRL also has its own temporal information. Relate issuer, scope, signature and update interval to the leaf under examination. Absence of a serial from another CA's list establishes no useful assurance about this certificate.
The lab exposes another detail: after leaf revocation, ordinary verification still passes if it does not consult the CRL. With -crl_check and the correct list, rejection is observed. An OK therefore describes only the checks actually performed. OCSP adds distinct states: unknown does not become good because the response is signed, and good does not replace chain, identity or leaf-date validation. A stapled response can be authentic yet stale. Define freshness policy, unavailability behavior and exception authority before the change window. Do not present the CRL exercise as a test of an OCSP responder, because no such service was executed. The distinction matters when assigning remaining integration work to the PKI and application teams.
Read and repeat the PKI lab
The original script creates a root, an intermediate and synthetic leaves inside a temporary directory. It uses EC P-256 keys, issues certificates with different profiles and calls OpenSSL verify with explicit anchors and options. The reference command includes -no-CApath and -no-CAstore to reduce external-store dependencies, plus -CAfile root.pem and -untrusted intermediate.pem. The exercise never installs a root into the operating system. To distinguish causes, it changes one condition at a time: hostname, SAN type, purpose, permitted subtree, critical extension, validity or CRL consultation.
Two runs of the same script passed 77 checks and 49 OpenSSL commands each, using OpenSSL 3.6.5 and Python 3.13.1. Some checks belong to the attestation model explained in the hardware lesson. The ordinary verification instant is two minutes ahead of the start of that phase so a CRL created in the following second does not appear not yet valid. An initial trial exposed that timing condition and prompted the correction. Compare exit codes and diagnostics rather than only the last line. Temporary keys are removed at completion. No TLS listener, browser, OCSP responder, enterprise trust store or production performance was exercised.
Accept renewal in the consumer doing the work
Renewal is ready when required consumers can perform their function while retaining trust boundaries. In a fictional fund-closing scenario, the portal passes and batch fails. Portal evidence does not authorize closing the batch incident. Record library, store, delivered chain, requested identity, purpose and revocation policy for each relevant consumer. When two causes exist, such as a missing intermediate and a clientAuth-only server profile, a partial correction may simply expose the next error. The plan should include validation after each change.
Before the window, define the result permitting continuation, time reserved for reversal and who can approve an exception. An earlier version is a valid exit only while authorized, compatible and rehearsed. During a CA transition, plan trust distribution before the change and retirement of the old anchor after assessing dependencies. Give APS an expiration inventory, issuance and renewal owners, diagnostic commands without secrets and examples of expected rejections. The operational summary should distinguish chain construction, anchor authorization, identity, purpose, validity and revocation. That separation turns a generic “SSL error” into an investigation with assignable responsibilities and observable checks. It also prevents an availability shortcut from silently becoming permanent trust policy.
Rotating the key protecting a data key does not erase an exposed copy of that data key.
Common pitfalls
CN as SAN; alias as material; rotation as re-encryption; signature as encryption; 0-RTT as exactly-once execution.
Related topics: Governance, risk, and exceptions · Suppliers, data, and threats · Resilience and recovery dependencies
Validate the specific property each mechanism provides.
References
- PKIX certificate and extension constraints · RFC 5280
- Service Identity in TLS · RFC 9525, November 2023; DNS-ID/IP-ID and wildcard matching
- X.509 Internet PKI Online Certificate Status Protocol · RFC 6960, June 2013; response status/freshness and responder authorization
- OpenSSL certificate verification options · 3.6 documentation; local execution 3.6.5 released 2026-09-29
- OpenSSL ca command · 3.6 documentation; local execution 3.6.5
- X.509 v3 extension configuration · 3.6 documentation; local execution 3.6.5