Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Certificates

Direct answer

An X.509 certificate contains subject, issuer, validity dates, public key, subjectAltName (names), key usage and extended key usage, signed by the issuer.

When to use this

Use it to check what a certificate is valid for and until when.

First 30 seconds

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.

Operational verification

certificate fields → client checks name, dates, usage, signature by issuer

Evidence · next step

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
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Key commandopenssl x509 -in cert.pem -noout -subject -issuer -dates -ext subjectAltName
Scope / prerequisiteUse it to check what a certificate is valid for and until when.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points

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.

Key checks
  • openssl x509 -in <cert> -noout -subject -issuer -dates -ext subjectAltName — certificate details
  • openssl s_client -connect <host>:443 -servername <name> </dev/null — live chain and verification
  • openssl verify -CAfile <ca> -untrusted <chain> <cert> — chain validation
  • trust 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 extensionCheck
Subject / subjectAltNameAll host names the service uses are listed (as DNS names)
IssuerThe expected CA
Validity (notBefore / notAfter)Currently valid; not too close to expiry
Public keyExpected algorithm and size; matches the installed key
basicConstraintsCA:FALSE on server certificates
keyUsage / extendedKeyUsagedigitalSignature, and TLS Web Server Authentication for servers
Authority Information AccessCA issuer URL and OCSP responder
CRL Distribution PointsWhere revocation lists are published
Serial numberNeeded for revocation requests

Common problems found in certificates

Symptom in clientsField responsible
Name mismatchThe host name missing from subjectAltName
Certificate expired / not yet validValidity, or a wrong clock on the client or server
"Certificate not trusted"Issuer not trusted, or the chain incomplete
Rejected for TLS server useMissing serverAuth in extendedKeyUsage
A server certificate usable as a CACA: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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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:

FieldWhy it matters
Subject Alternative NameHostnames/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 UsageserverAuth, clientAuth
Issuer / AIAChain building, OCSP
Basic ConstraintsCA: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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
x509 certificatelinux certificatetls certificate
Embedded reference data

Quick lookup tables

Certificates operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Certificates.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateCertificates 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 verificationPin 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 chainissued certificate metadata → key match → service load/presentation → chain building → hostname/EKU/time verification → application useTrace requested/configured state through effective state to the observed workload result.
Failure boundaryCertificate 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 evidenceCorrelated Linux security/trust evidence can establish this proof path: issued certificate metadata → key match → service load/presentation → chain building → hostname/EKU/time verification → application useUse this observation only for the specific claim it actually supports.
Evidence limitIt 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 checkContinue 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 boundaryCertificates
Topic pathCertificates & TLS → Certificates
Runtime stateCertificates 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 chainissued 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 boundaryCertificate 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 ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?