Use it to trust an internal CA, or when clients reject certificates from an internal CA.
CA Certificates
CA certificates are the trusted roots (and internal CAs) in the system trust store: /etc/ssl/certs (Debian) or /etc/pki/ca-trust (RHEL).
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.
CA added to the source directory → store rebuilt → clients using the system store trust it
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
Operational reference
Fast context before you go deeper.
Verification & 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
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 · 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.
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.
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
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 bundleca-certificates.crt. /etc/ca-certificates.confselects which certificates from/usr/share/ca-certificatesto trust, and a line starting with!deselects one.- Any
.crtfile in/usr/local/share/ca-certificatesis added as trusted. - Hook scripts in
/etc/ca-certificates/update.drun afterwards. -fdoes a fresh rebuild.
Debian and RHEL families compared
| Task | Debian / Ubuntu | RHEL / Fedora |
|---|---|---|
| Add a local CA | Copy to /usr/local/share/ca-certificates/<name>.crt | Copy to /etc/pki/ca-trust/source/anchors/ |
| Rebuild the store | update-ca-certificates | update-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.conf | Copy to /etc/pki/ca-trust/source/blacklist/ |
Programs that don't use the system store
| Program | Uses |
|---|---|
| Java | Its own keystore (cacerts); some distributions sync it from the system store |
Python requests | Its certifi bundle, unless REQUESTS_CA_BUNDLE is set |
| Node.js | A built-in list; NODE_EXTRA_CA_CERTS adds certificates |
| Firefox | Its own NSS store (enterprise policies can enable the system store) |
| Containers | Their 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.
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:
| Family | Add a CA | Update |
|---|---|---|
| RHEL/Rocky/Fedora | copy PEM to /etc/pki/ca-trust/source/anchors/ | update-ca-trust |
| Debian/Ubuntu | copy .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.
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
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 → CA 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
CA Certificates operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for CA Certificates.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | 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. | 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 | CA source → distro trust-anchor installation → generated bundle/database → application/runtime trust selection → chain validation → client result | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | 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. | 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: CA source → distro trust-anchor installation → generated bundle/database → application/runtime trust selection → chain validation → client result | 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. 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 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. |
CA Certificates · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | CA Certificates |
|---|---|
| Topic path | Certificates & TLS → CA Certificates |
| Runtime state | 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. |
| 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 chain | CA 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 boundary | 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. 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. |