Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

CA Certificates

Direct answer

CA certificates are the trusted roots (and internal CAs) in the system trust store: /etc/ssl/certs (Debian) or /etc/pki/ca-trust (RHEL).

When to use this

Use it to trust an internal CA, or when clients reject certificates from an internal CA.

First 30 seconds

1. Is the issuer root in the store? trust list | grep -i <name> (RHEL) or ls /etc/ssl/certs | grep.

2. Add and update the store.

3. Retest: curl -v https://<host>.

4. App uses its own store (Java keytool, Python certifi)?

5. Remove distrusted CAs the same way.

Operational verification

CA added to the source directory → store rebuilt → clients using the system store trust it

Evidence · next step

For Certificates & TLS → CA 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 CA 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
Scope / prerequisiteUse it to trust an internal CA, or when clients reject certificates from an internal CA.
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

CA source → distro trust-anchor installation → generated bundle/database → application/runtime trust selection → chain validation → client result

Healthy evidence: approved CA is in the effective trust store, update mechanism succeeds, actual client uses that store and intended chain validates

Step 2 Verification and output interpretation Verify boundary

Verification chain. CA source → distro trust-anchor installation → generated bundle/database → application/runtime trust selection → chain validation → client result

Step 3 Commands Verify boundary
cp ca.crt /usr/local/share/ca-certificates/ && update-ca-certificates   # Debian
cp ca.crt /etc/pki/ca-trust/source/anchors/ && update-ca-trust           # RHEL
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: file is installed in wrong path/format, trust update not run, duplicate/stale CA remains, application has private store, container differs or broad CA trust is added to fix one endpoint

Step 5 Common mistakes Narrow the fault
  • Adding the CA to the OS but not to Java/Python bundles.
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

Add a CA: Debian — copy to /usr/local/share/ca-certificates/<name>.crt and update-ca-certificates; RHEL — copy to /etc/pki/ca-trust/source/anchors/ and update-ca-trust. Java and some languages use their own stores.

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

CA trust is confirmed only for the actual client/runtime and endpoint chain; system-store state does not show containers, JVMs, browsers or applications use the same anchors.

In depth

Managing trusted CA certificates on Linux

Programs on Linux decide which certificates to trust from a system-wide CA store. Adding an internal CA there makes every program that uses the system store trust it. The update-ca-certificates(8) manual page describes the Debian and Ubuntu mechanism:

  • It rebuilds /etc/ssl/certs, and the single bundle ca-certificates.crt.
  • /etc/ca-certificates.conf selects which certificates from /usr/share/ca-certificates to trust, and a line starting with ! deselects one.
  • Any .crt file in /usr/local/share/ca-certificates is added as trusted.
  • Hook scripts in /etc/ca-certificates/update.d run afterwards.
  • -f does a fresh rebuild.

Debian and RHEL families compared

TaskDebian / UbuntuRHEL / Fedora
Add a local CACopy to /usr/local/share/ca-certificates/<name>.crtCopy to /etc/pki/ca-trust/source/anchors/
Rebuild the storeupdate-ca-certificatesupdate-ca-trust
The bundle programs read/etc/ssl/certs/ca-certificates.crt/etc/pki/tls/certs/ca-bundle.crt
Distrust a CA! in /etc/ca-certificates.confCopy to /etc/pki/ca-trust/source/blacklist/

Programs that don't use the system store

ProgramUses
JavaIts own keystore (cacerts); some distributions sync it from the system store
Python requestsIts certifi bundle, unless REQUESTS_CA_BUNDLE is set
Node.jsA built-in list; NODE_EXTRA_CA_CERTS adds certificates
FirefoxIts own NSS store (enterprise policies can enable the system store)
ContainersTheir own image's store

Adding an internal CA

The file must be in PEM format, with a .crt extension, and it should contain the CA certificate only, never a private key.

host$ sudo cp corp-root-ca.pem /usr/local/share/ca-certificates/corp-root-ca.crt
host$ sudo update-ca-certificates
Updating certificates in /etc/ssl/certs...
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
host$ openssl verify -CAfile /etc/ssl/certs/ca-certificates.crt intranet.crt
intranet.crt: OK
host$ curl -sI https://intranet.corp.example.net | head -1
HTTP/2 200
host$ python3 -c "import requests; print(requests.get('https://intranet.corp.example.net').status_code)"
requests.exceptions.SSLError: ... CERTIFICATE_VERIFY_FAILED
host$ export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
host$ sudo cp corp-root-ca.pem /etc/pki/ca-trust/source/anchors/ && sudo update-ca-trust

Reading the example

After the update, curl and openssl trust the internal certificate, because they use the system bundle. Python's requests library still fails, because it ships its own bundle. Pointing REQUESTS_CA_BUNDLE at the system store fixes that. That's a common case of "it works with curl but not in the application".

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

CA Certificates is part of Certificates & TLS → CA Certificates. CA Certificates and Linux trust stores define which certification authorities clients trust, with distribution-specific bundle/update mechanisms and application-specific overrides or private stores.

Topic-specific state model. CA Certificates and Linux trust stores define which certification authorities clients trust, with distribution-specific bundle/update mechanisms and application-specific overrides or private stores.

Interpretation rule. - CA certificate copied to a directory ≠ system trust store updated or application using it.

  • System trust store contains a CA ≠ every runtime/application inherits that store.

Quick reference

System trust stores:

FamilyAdd a CAUpdate
RHEL/Rocky/Fedoracopy PEM to /etc/pki/ca-trust/source/anchors/update-ca-trust
Debian/Ubuntucopy .crt to /usr/local/share/ca-certificates/update-ca-certificates
SUSE/etc/pki/trust/anchors/update-ca-certificates

Applications with their own stores ignore these: Java (keytool -importcert -cacerts), Python certifi in virtualenvs (REQUESTS_CA_BUNDLE), Node.js (NODE_EXTRA_CA_CERTS), Firefox (NSS). Check trust list | grep -i <ca> (p11-kit) to confirm installation.

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. CA trust is confirmed only for the actual client/runtime and endpoint chain; system-store state does not show containers, JVMs, browsers or applications use the same anchors.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. CA Certificates owns Linux trust-anchor installation and consumption boundaries.

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 → CA 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
ca certificates linuxlinux trust storeroot ca linux
Embedded reference data

Quick lookup tables

CA Certificates operational reference

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

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateCA Certificates and Linux trust stores define which certification authorities clients trust, with distribution-specific bundle/update mechanisms and application-specific overrides or private stores.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 chainCA source → distro trust-anchor installation → generated bundle/database → application/runtime trust selection → chain validation → client resultTrace requested/configured state through effective state to the observed workload result.
Failure boundaryCA trust is proven only for the actual client/runtime and endpoint chain; system-store state does not prove containers, JVMs, browsers or applications use the same anchors.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux security/trust evidence can establish this proof path: CA source → distro trust-anchor installation → generated bundle/database → application/runtime trust selection → chain validation → client resultUse 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. CA trust is proven only for the actual client/runtime and endpoint chain; system-store state does not prove containers, JVMs, browsers or applications use the same anchors.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.

CA Certificates · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryCA Certificates
Topic pathCertificates & TLS → CA Certificates
Runtime stateCA Certificates and Linux trust stores define which certification authorities clients trust, with distribution-specific bundle/update mechanisms and application-specific overrides or private stores.
Fast checks- Record exact host, distribution/kernel, boot ID, time window, workload, identity and the authoritative configuration/policy source for CA 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 chainCA source → distro trust-anchor installation → generated bundle/database → application/runtime trust selection → chain validation → client result Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundaryCA trust is proven only for the actual client/runtime and endpoint chain; system-store state does not prove containers, JVMs, browsers or applications use the same anchors. 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?