Use it to check what a certificate is valid for and until when.
Certificates
An X.509 certificate contains subject, issuer, validity dates, public key, subjectAltName (names), key usage and extended key usage, signed by the issuer.
1. openssl x509 -in <cert> -noout -subject -issuer -dates -ext subjectAltName.
2. Name in SAN?
3. Dates valid now (and clock correct)?
4. EKU serverAuth/clientAuth as needed: -ext extendedKeyUsage.
5. Issuer chain available.
certificate fields → client checks name, dates, usage, signature by issuer
For Certificates & TLS → Certificates, continue with the first unproven Topic check: Record exact host, distribution/kernel, boot ID, time window, workload, identity and the authoritative configuration/policy source for Certificates. If that boundary is healthy, advance to the adjacent check: Read back the effective runtime state and precedence rather than assuming an edited file, package state or service status is active. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
openssl x509 -in cert.pem -noout -subject -issuer -dates -ext subjectAltNameVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
issued certificate metadata → key match → service load/presentation → chain building → hostname/EKU/time verification → application use
Healthy evidence: leaf certificate has expected SAN/EKU/validity, matches its key, service presents it and intended client verification passes
Step 2 Verification and output interpretation Verify boundary
Verification chain. issued certificate metadata → key match → service load/presentation → chain building → hostname/EKU/time verification → application use
Step 3 Commands Verify boundary
openssl x509 -in cert.pem -noout -subject -issuer -dates -ext subjectAltName
openssl x509 -in cert.pem -noout -checkend 2592000
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: expired/not-yet-valid certificate, SAN/EKU mismatch, wrong key, stale service reload, weak/unexpected signature algorithm or endpoint presents a different certificate
Step 5 Common mistakes Narrow the fault
- Not monitoring expiry.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Clients match the host name against SANs. Expired or not-yet-valid (clock wrong) certificates fail. Extended key usage must include serverAuth for TLS servers.
openssl x509 -in <cert> -noout -subject -issuer -dates -ext subjectAltName— certificate detailsopenssl s_client -connect <host>:443 -servername <name> </dev/null— live chain and verificationopenssl verify -CAfile <ca> -untrusted <chain> <cert>— chain validationtrust list | head / ls /etc/ssl/certs— system trust store
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Certificate verification is resolved when metadata/key/usage are correct and the running endpoint presents it successfully to the intended validating client.
In depth
Reading a certificate: fields that matter
An X.509 certificate binds a public key to an identity, signed by an issuer. RFC 5280 defines the profile used on the Internet:
- The validity period runs from notBefore through notAfter, inclusive.
- A CA certificate has basicConstraints with cA set to TRUE.
- keyUsage can include keyCertSign, which must only appear together with cA TRUE.
- The subject name can be carried in the subject field, in the subjectAltName extension, or both.
- Self-signed certificates convey the public keys used to start certification paths.
Fields and what to check
| Field or extension | Check |
|---|---|
| Subject / subjectAltName | All host names the service uses are listed (as DNS names) |
| Issuer | The expected CA |
| Validity (notBefore / notAfter) | Currently valid; not too close to expiry |
| Public key | Expected algorithm and size; matches the installed key |
| basicConstraints | CA:FALSE on server certificates |
| keyUsage / extendedKeyUsage | digitalSignature, and TLS Web Server Authentication for servers |
| Authority Information Access | CA issuer URL and OCSP responder |
| CRL Distribution Points | Where revocation lists are published |
| Serial number | Needed for revocation requests |
Common problems found in certificates
| Symptom in clients | Field responsible |
|---|---|
| Name mismatch | The host name missing from subjectAltName |
| Certificate expired / not yet valid | Validity, or a wrong clock on the client or server |
| "Certificate not trusted" | Issuer not trusted, or the chain incomplete |
| Rejected for TLS server use | Missing serverAuth in extendedKeyUsage |
| A server certificate usable as a CA | CA:TRUE by mistake (a serious issuing error) |
host$ openssl x509 -in www.crt -noout -text | grep -E "Issuer:|Not Before|Not After|Subject:|Public-Key|CA:|TLS Web|DNS:"
Issuer: C = US, O = Let's Encrypt, CN = R11
Not Before: Oct 28 08:12:42 2026 GMT
Not After : Jan 26 08:12:41 2027 GMT
Subject: CN = www.example.net
Public-Key: (256 bit)
CA:FALSE
TLS Web Server Authentication
DNS:example.net, DNS:www.example.net
host$ openssl x509 -in www.crt -noout -serial -fingerprint -sha256
host$ openssl x509 -in www.crt -noout -ext authorityInfoAccess
Reading the output
The validity is 90 days, which is typical of ACME-issued certificates. Both names are in the SAN, and CA:FALSE with serverAuth is right for a web server. The serial and SHA-256 fingerprint uniquely identify this certificate, for example in revocation requests or inventories.
Documented example, not captured output.
How it works at runtime
Certificates is part of Certificates & TLS → Certificates. Certificates are signed X.509 identity/public-key objects with issuer, subject/SAN, serial, validity, key usage and extensions that must match the service role and current endpoint configuration.
Topic-specific state model. Certificates are signed X.509 identity/public-key objects with issuer, subject/SAN, serial, validity, key usage and extensions that must match the service role and current endpoint configuration.
Interpretation rule. - Certificate parses and is in date ≠ trusted by the intended client or valid for the requested hostname/use.
- Correct certificate file on disk ≠ running service presents that certificate.
Quick reference
Certificate fields to check:
| Field | Why it matters |
|---|---|
| Subject Alternative Name | Hostnames/IPs the cert is valid for |
| Validity (notBefore/notAfter) | Expiry — public TLS certs move towards ≤ 47 days by 2029 (CA/B Forum) |
| Key Usage / Extended Key Usage | serverAuth, clientAuth |
| Issuer / AIA | Chain building, OCSP |
| Basic Constraints | CA:TRUE only on CA certs |
openssl x509 -in cert.pem -noout -text
openssl x509 -in cert.pem -noout -checkend $((30*86400)) && echo 'valid > 30 days'
Automate renewal (certbot, acme.sh, cert-manager) and monitor expiry externally.
Limits and how it fails
Primary failure point. Certificate verification is resolved when metadata/key/usage are correct and the running endpoint presents it successfully to the intended validating client.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Certificates owns the leaf/issued object; Certificate Chain and CA Certificates own chain/trust relationships.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Certificates & TLS → Certificates. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.openssl.org/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Certificates operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Certificates.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Certificates are signed X.509 identity/public-key objects with issuer, subject/SAN, serial, validity, key usage and extensions that must match the service role and current endpoint configuration. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin host + boot/time + real identity/workload → identify authoritative policy/key/trust source → read back loaded/effective runtime state → reproduce one safe allow/deny/handshake test → correlate audit/service/kernel evidence → locate first failed boundary → make the smallest persistent change → repeat original workload + regression/recovery check. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | issued certificate metadata → key match → service load/presentation → chain building → hostname/EKU/time verification → application use | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Certificate verification closes when metadata/key/usage are correct and the running endpoint presents it successfully to the intended validating client. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux security/trust evidence can establish this proof path: issued certificate metadata → key match → service load/presentation → chain building → hostname/EKU/time verification → application use | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove unobserved identities, objects, policies, namespaces, endpoints or time periods. Certificate verification closes when metadata/key/usage are correct and the running endpoint presents it successfully to the intended validating client. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven security/trust boundary, capture the adjacent effective state and audit/handshake evidence, make only the demonstrated persistent change, then repeat the original workload plus recovery/regression checks. | Continue to the next unresolved boundary while preserving the original test condition. |
Certificates · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Certificates |
|---|---|
| Topic path | Certificates & TLS → Certificates |
| Runtime state | Certificates are signed X.509 identity/public-key objects with issuer, subject/SAN, serial, validity, key usage and extensions that must match the service role and current endpoint configuration. |
| Fast checks | - Record exact host, distribution/kernel, boot ID, time window, workload, identity and the authoritative configuration/policy source for Certificates. - Read back the effective runtime state and precedence rather than assuming an edited file, package state or service status is active. - Reproduce one safe allowed/denied or handshake/access test and correlate kernel/service/audit evidence at the first relevant boundary. - Apply the smallest persistent cause-specific change, then repeat the original test plus an adjacent regression/recovery check. |
| Verification chain | issued certificate metadata → key match → service load/presentation → chain building → hostname/EKU/time verification → application use Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. |
| Failure boundary | Certificate verification closes when metadata/key/usage are correct and the running endpoint presents it successfully to the intended validating client. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |