Deploying a Private Root CA Certificate to Browsers and Client Devices
1. Objective
Section titled “1. Objective”The purpose of this procedure is to make browsers and supported applications trust HTTPS certificates issued by a private Certificate Authority.
The public CA certificate will be referred to as:
CA.crtAfter the CA is correctly installed as a trusted root, a browser should accept server certificates issued by that CA without displaying errors such as:
NET::ERR_CERT_AUTHORITY_INVALIDSEC_ERROR_UNKNOWN_ISSUERMOZILLA_PKIX_ERROR_SELF_SIGNED_CERTYour connection is not privateThis Connection Is Not PrivateInstalling CA.crt solves only the issuer trust part of certificate validation. The HTTPS server certificate and the complete TLS configuration must still be correct.
2. What Must Be Distributed
Section titled “2. What Must Be Distributed”2.1 Distribute only the public CA certificate
Section titled “2.1 Distribute only the public CA certificate”The file distributed to clients must contain the public certificate of the private root CA:
CA.crtIt may also be named:
CA.cerroot-ca.crtroot-ca.cercompany-root-ca.pemThe filename and extension are not the critical part. The important elements are:
- it is an X.509 CA certificate;
- it contains only public information;
- it corresponds to the CA that issued, directly or indirectly, the HTTPS server certificates;
- it does not contain a private key.
Never distribute any of the following:
CA.keyroot.keyprivate.keyca-private-key.pem*.p12*.pfxA root CA private key would allow its holder to issue certificates trusted by every device on which the CA has been installed.
2.2 Obtaining CA.crt from PKI Manager
Section titled “2.2 Obtaining CA.crt from PKI Manager”In this project, the public certificate of a CA is produced and served by the PKI Manager backend. There are three equivalent ways to obtain it. All of them return the public certificate only; none of the certificate/truststore formats contains the private key.
2.2.1 Web UI
Section titled “2.2.1 Web UI”- Open the PKI Manager web interface.
- Go to Certificate Authorities and open the target CA (
/cas/<CA_ID>). - In the export section, choose a format in the Download format selector and click Download:
pem / crt Public certificate, PEM text (this is CA.crt)der / cer Public certificate, DER binaryThe selector also offers PKCS#12 and JKS truststore formats (public certificate only, for Java clients) and keystore formats. The PKCS#12 and JKS formats are password-protected; the UI requires a password of at least 8 characters. The keystore formats embed the CA private key and must never be distributed to client devices — see the warning in section 2.1.
2.2.2 REST API (authenticated)
Section titled “2.2.2 REST API (authenticated)”The /api/v1 REST API exposes the same download, documented in Swagger at /api/docs:
GET /api/v1/cas/{CA_ID}/download?format=pemSupported format values:
pem, crt, der, cer public certificatep12-truststore, jks-truststore public certificate in a truststorep12-keystore, jks-keystore certificate + private key (do NOT distribute)The response is JSON with Base64-encoded content. The PKCS#12/JKS formats also take a password query parameter: it is required for the keystore formats and optional for the truststore formats (the default is changeit).
{ "data": "<base64>", "mimeType": "application/x-pem-file", "filename": "Example_Private_Root_CA.pem"}Fetch and decode it to CA.crt:
curl -s \ -H "Authorization: Bearer $TOKEN" \ "https://pki.example.internal/api/v1/cas/$CA_ID/download?format=pem" | jq -r .data | base64 -d > CA.crtIf PKI Manager runs without OIDC configured, the API is unauthenticated and the Authorization header can be omitted.
2.2.3 Public direct-download endpoint (no authentication)
Section titled “2.2.3 Public direct-download endpoint (no authentication)”The backend also serves each CA’s public certificate as a raw file at the server root. This is the most convenient form for scripts, curl, and automation because it returns the certificate bytes directly with a download filename:
GET /cas/{CA_ID}.pem (also .crt, .cer, .der)curl -s -o CA.crt \ "https://pki.example.internal/cas/$CA_ID.pem"This endpoint returns only the public certificate and is safe to expose. After obtaining CA.crt by any of these methods, verify its SHA-256 fingerprint (section 2.4 and chapter 6) before distributing or installing it.
2.3 Root CA versus intermediate CA
Section titled “2.3 Root CA versus intermediate CA”PKI Manager today: it creates root CAs only and issues certificates directly from them. It does not create intermediate (subordinate) CAs. With PKI Manager the chain is
server certificate → root CA, and the server sends only its own certificate. The rest of this section is the general model.
A common private PKI has this hierarchy:
Normally, clients should trust the root CA.
The server should present:
Leaf/server certificateIntermediate CA certificateThe server should normally not send the root certificate because clients already possess and trust it locally.
The validation path is:
Installing only the intermediate CA as a trusted root can technically work in some environments, but it changes the intended trust boundary and is generally not the preferred PKI design.
2.4 Root certificate requirements
Section titled “2.4 Root certificate requirements”Before deployment, verify that CA.crt really is a CA certificate.
Inspect it with OpenSSL:
openssl x509 \ -in CA.crt \ -noout \ -subject \ -issuer \ -serial \ -dates \ -fingerprint \ -sha256 \ -textLook for:
X509v3 Basic Constraints: CA:TRUEPreferably, the extension should be marked critical:
X509v3 Basic Constraints: critical CA:TRUEThe certificate should also normally contain an appropriate key-usage extension:
X509v3 Key Usage: critical Certificate Sign, CRL SignFor a self-signed root CA, the subject and issuer are normally identical:
Subject: CN = Example Private Root CAIssuer: CN = Example Private Root CAThat alone does not prove that the certificate is legitimate. Compare its SHA-256 fingerprint against a value obtained through a trusted, independent channel.
3. Supported Certificate Encodings
Section titled “3. Supported Certificate Encodings”3.1 PEM encoding
Section titled “3.1 PEM encoding”A PEM certificate is Base64-encoded text:
-----BEGIN CERTIFICATE-----MIID......-----END CERTIFICATE-----Common extensions:
.crt.cer.pemPEM is commonly used by:
- Linux;
- OpenSSL;
- web servers;
- configuration-management systems.
3.2 DER encoding
Section titled “3.2 DER encoding”A DER certificate is binary rather than Base64 text.
Common extensions:
.cer.der.crtWindows, Android, iOS and macOS can generally process DER-encoded certificates. Some import interfaces behave more consistently with DER than PEM.
3.3 Converting between PEM and DER
Section titled “3.3 Converting between PEM and DER”PEM to DER:
openssl x509 \ -in CA.crt \ -outform DER \ -out CA.derDER to PEM:
openssl x509 \ -in CA.der \ -inform DER \ -outform PEM \ -out CA.crtThe conversion changes only the representation. It does not change:
- the public key;
- the subject;
- the serial number;
- the validity period;
- the fingerprint of the certificate itself.
3.4 Recommended distribution files
Section titled “3.4 Recommended distribution files”For maximum compatibility, maintain both forms:
CA.crt # PEMCA.cer # DERBefore distribution, verify that both represent the same certificate:
openssl x509 -in CA.crt -noout -fingerprint -sha256openssl x509 \ -in CA.cer \ -inform DER \ -noout \ -fingerprint \ -sha256The fingerprints must match.
4. Security Consequences of Installing a Private Root CA
Section titled “4. Security Consequences of Installing a Private Root CA”Installing a root CA is a privileged and security-sensitive operation.
A device that trusts CA.crt will potentially accept any otherwise valid server certificate signed by that CA, including certificates for public Internet names.
For example, the CA could technically issue certificates for:
[www.google.com](http://www.google.com)[login.microsoftonline.com](http://login.microsoftonline.com)bank.exampleWhether an attacker could successfully use such certificates also depends on their ability to intercept or redirect traffic, but trusting the CA creates that possibility.
Therefore:
- Protect the CA private key with strong access controls.
- Distribute the public CA certificate over a controlled channel.
- Verify the SHA-256 fingerprint before installation.
- Document every device or fleet receiving the CA.
- Define a removal and rollover procedure.
- Do not tell users to install arbitrary certificates received by email.
- Use MDM, Group Policy or another managed mechanism for organizational deployments.
- Remove the CA when the device is retired or no longer requires access.
The fact that CA.crt does not contain a private key does not make installation harmless. The security impact comes from assigning trust to it.
5. Why Installing the CA May Still Not Fix the Browser
Section titled “5. Why Installing the CA May Still Not Fix the Browser”Installing the correct CA fixes only this condition:
The certificate chain ends in an unknown CA.The browser will still reject the connection if any other TLS validation requirement fails.
5.1 Missing Subject Alternative Name
Section titled “5.1 Missing Subject Alternative Name”Modern browsers validate hostnames against the certificate’s subjectAltName extension.
A certificate such as:
Subject: CN = portal.example.internalis not sufficient by itself.
It should contain:
X509v3 Subject Alternative Name: DNS:portal.example.internalFor multiple names:
X509v3 Subject Alternative Name: DNS:portal.example.internal DNS:portal DNS:www.portal.example.internalThe hostname entered into the browser must match a DNS SAN exactly, subject to standard wildcard rules.
In PKI Manager: certificates are always issued with a real subjectAltName extension, so this failure mode does not occur when the SAN is populated. Supply the names when issuing a certificate through the Subject Alternative Names section of the New Certificate form (DNS Names, IP Addresses, Email Addresses fields), or through the API fields sanDns, sanIp, and sanEmail on the certificate-issue request. Every hostname a client may use must appear as its own DNS SAN entry.
5.2 Common Name alone is insufficient
Section titled “5.2 Common Name alone is insufficient”Do not rely only on:
CN=portal.example.internalIssue certificates with a proper SAN extension.
5.3 Incorrect use of IP addresses
Section titled “5.3 Incorrect use of IP addresses”If users browse to:
[https://192.168.1.50](https://192.168.1.50)the certificate must contain an IP SAN:
X509v3 Subject Alternative Name: IP Address:192.168.1.50This is different from:
DNS:192.168.1.50An IP address must be encoded as an IP SAN, not as a DNS name.
A certificate containing only:
DNS:portal.example.internalis not valid when the user accesses the server using its IP address.
In PKI Manager: use the IP Addresses field (API: sanIp) — not the DNS field — for any address a client connects to by IP. The backend encodes those entries as iPAddress GeneralNames, producing a correct IP Address: SAN rather than a DNS: entry.
5.4 Missing intermediate certificate
Section titled “5.4 Missing intermediate certificate”The client should normally receive the intermediate certificate from the HTTPS server.
The server should present:
server certificateintermediate CA certificateIt should not rely on every browser having previously cached the intermediate.
A browser may work on one machine because the intermediate is cached and fail on a clean machine where it is absent.
5.5 Wrong Extended Key Usage
Section titled “5.5 Wrong Extended Key Usage”A server certificate should normally permit TLS server authentication:
X509v3 Extended Key Usage: TLS Web Server AuthenticationIts corresponding OID is:
1.3.6.1.5.5.7.3.1A certificate restricted to client authentication is not a valid server certificate:
TLS Web Client Authentication5.6 Invalid validity period
Section titled “5.6 Invalid validity period”The server certificate must currently be valid:
Not Before <= current time <= Not AfterCheck:
openssl x509 \ -in server.crt \ -noout \ -datesAlso verify the client’s clock. Incorrect time, date or time zone can make a valid certificate appear not yet valid or expired.
5.7 Weak or obsolete algorithms
Section titled “5.7 Weak or obsolete algorithms”Avoid:
MD5 signaturesSHA-1 signaturesRSA keys smaller than 2048 bitsobsolete elliptic curvesFor broad compatibility, typical choices are:
RSA 2048 or 3072 with SHA-256ECDSA P-256 with SHA-2565.8 CA constraints are incorrect
Section titled “5.8 CA constraints are incorrect”The root and intermediate certificates must be permitted to sign certificates:
Basic Constraints: CA:TRUEKey Usage: Certificate SignThe leaf certificate should normally have:
Basic Constraints: CA:FALSE5.9 Certificate chain order is wrong
Section titled “5.9 Certificate chain order is wrong”When creating a full-chain file, the order should normally be:
-----BEGIN CERTIFICATE-----Leaf/server certificate-----END CERTIFICATE----------BEGIN CERTIFICATE-----Intermediate CA certificate-----END CERTIFICATE-----Do not put the root first.
Do not put the intermediate before the leaf.
6. Verify the CA Before Deploying It
Section titled “6. Verify the CA Before Deploying It”6.1 Display the SHA-256 fingerprint
Section titled “6.1 Display the SHA-256 fingerprint”openssl x509 \ -in CA.crt \ -noout \ -fingerprint \ -sha256Example:
sha256 Fingerprint=4A:CF:21:7E:53:92:5D:5A:...6.2 Verify that the private and public keys correspond
Section titled “6.2 Verify that the private and public keys correspond”This procedure should be performed only on the protected CA system where the private key is stored.
For an RSA key:
openssl x509 \ -in CA.crt \ -noout \ -modulus |openssl sha256openssl rsa \ -in CA.key \ -noout \ -modulus |openssl sha256The values must match.
A more general public-key comparison is:
openssl x509 \ -in CA.crt \ -pubkey \ -noout |openssl pkey \ -pubin \ -outform DER |openssl sha256openssl pkey \ -in CA.key \ -pubout \ -outform DER |openssl sha256Again, the resulting hashes must match.
Do not perform this comparison on ordinary client devices because the private CA key should never be present there.
6.3 Verify a server certificate against the CA
Section titled “6.3 Verify a server certificate against the CA”For a directly issued server certificate:
openssl verify \ -CAfile CA.crt \ server.crtExpected result:
server.crt: OKFor an intermediate-based hierarchy:
openssl verify \ -CAfile root-CA.crt \ -untrusted intermediate-CA.crt \ server.crt7. Windows 10 and Windows 11
Section titled “7. Windows 10 and Windows 11”7.1 Windows certificate stores
Section titled “7.1 Windows certificate stores”Windows separates certificate stores by:
- user;
- machine;
- purpose.
The two most relevant scopes are:
Current UserLocal ComputerThe important store is:
Trusted Root Certification AuthoritiesInstalling a certificate into:
PersonalIntermediate Certification AuthoritiesTrusted Publishersdoes not give it the same root trust semantics.
The Windows Trusted Root Certification Authorities store contains the root CAs that Windows trusts.
7.2 Machine-wide installation using certutil
Section titled “7.2 Machine-wide installation using certutil”Open Command Prompt or PowerShell as Administrator.
Run:
certutil -addstore -f "ROOT" CA.crtcertutil -addstore adds a certificate to the specified Windows certificate store; ROOT selects Trusted Root Certification Authorities.
This is the preferred command for machine-wide manual deployment.
The parameters mean:
-addstore Add certificate to a store-f Force the operationROOT Trusted Root Certification AuthoritiesCA.crt Public CA certificate7.3 Current-user installation
Section titled “7.3 Current-user installation”Without administrative access, a certificate can be added to the current user’s trusted-root store:
certutil -user -addstore -f "ROOT" CA.crtThis affects only the current user.
It may be sufficient for browsers running under that account, but it will not necessarily cover:
- Windows services;
- other user accounts;
- service accounts;
- applications executing as Local System;
- background agents running under another identity.
For a shared or managed computer, prefer Local Computer installation.
7.4 Installation using the graphical interface
Section titled “7.4 Installation using the graphical interface”For machine-wide installation:
- Press
Win + R. - Run:
certlm.msc- Navigate to:
Trusted Root Certification Authorities└── Certificates- Right-click Certificates.
- Select All Tasks → Import.
- Select
CA.crtorCA.cer. - Explicitly place it in:
Trusted Root Certification Authorities- Finish the wizard.
- Open the installed certificate and verify its SHA-256 fingerprint.
Microsoft also documents importing roots through the Trusted Root Certification Authorities console.
For current-user installation, use:
certmgr.mscThe distinction is:
certlm.msc → Local Computercertmgr.msc → Current User7.5 Verification
Section titled “7.5 Verification”List the Local Computer root store:
certutil -store ROOTList the current-user root store:
certutil -user -store ROOTSearch using part of the CA name:
certutil -store ROOT "Example Private Root CA"The exact display behavior depends on how uniquely the string identifies a certificate.
7.6 Chrome on Windows
Section titled “7.6 Chrome on Windows”Chrome on Windows normally integrates with the Windows certificate infrastructure. Once the CA is in the correct Trusted Root Certification Authorities store, fully close and reopen Chrome.
Closing only the visible window may not terminate every Chrome process. Check Task Manager or use:
taskkill /IM chrome.exe /FThen reopen the browser.
7.7 Microsoft Edge on Windows
Section titled “7.7 Microsoft Edge on Windows”Microsoft Edge also uses the Windows trust infrastructure for normal TLS server validation.
After installing the root:
- Close every Edge window.
- Ensure background Edge processes are stopped if necessary.
- Restart Edge.
- Load the HTTPS service again.
7.8 Firefox on Windows
Section titled “7.8 Firefox on Windows”Firefox deserves explicit treatment because its certificate behavior has historically differed from Chrome and Edge.
Current Firefox supports trusting private roots installed in the Windows operating-system certificate store through its enterprise-roots functionality. Mozilla recommends OS-root integration for adding private PKI trust to Firefox.
Check:
about:configSearch for:
security.enterprise_roots.enabledSet it to:
trueRestart Firefox.
Alternatively, import CA.crt directly into Firefox:
Settings→ Privacy & Security→ Certificates→ View Certificates→ Authorities→ ImportSelect the CA and enable trust for identifying websites.
Direct Firefox import creates browser-profile-specific trust. It may need to be repeated for:
- each Firefox profile;
- each operating-system user;
- each separately managed Firefox installation.
For managed Firefox installations, use enterprise policy:
{ "policies": { "Certificates": { "ImportEnterpriseRoots": true } }}Using operating-system roots is generally easier to maintain than importing the same CA manually into every Firefox profile.
7.9 Remove the CA from Windows
Section titled “7.9 Remove the CA from Windows”First locate it:
certutil -store ROOTThen delete it using a sufficiently unique certificate identifier:
certutil -delstore ROOT "<certificate-hash-or-name>"For the current user:
certutil -user -delstore ROOT "<certificate-hash-or-name>"The graphical alternative is:
certlm.msc→ Trusted Root Certification Authorities→ Certificates→ Select CA→ DeleteVerify the fingerprint before deletion to avoid removing an unrelated root.
8. macOS
Section titled “8. macOS”8.1 macOS trust stores
Section titled “8.1 macOS trust stores”macOS stores certificates in keychains.
The relevant keychains are:
loginSystemSystem RootsFor a private organizational or local CA, install it into:
Systemwhen all users and system applications should trust it.
Use:
loginonly when trust should be limited to the current account.
Do not attempt to modify the protected Apple-managed System Roots keychain.
8.2 Installation using Keychain Access
Section titled “8.2 Installation using Keychain Access”- Open Keychain Access.
- Select the System keychain.
- Drag
CA.crtorCA.cerinto Keychain Access, or use the import function. - Authenticate as an administrator.
- Locate the imported CA under Certificates.
- Double-click it.
- Expand Trust.
- Set:
When using this certificate: Always Trust- Close the window.
- Authenticate again if requested.
Apple documents adding certificates to either the login or System keychain by importing or dragging the certificate into Keychain Access.
Apple also documents changing the certificate’s trust policies from the Trust section of its Keychain Access entry.
8.3 Command-line installation
Section titled “8.3 Command-line installation”For machine-wide trust:
sudo security add-trusted-cert \ -d \ -r trustRoot \ -k /Library/Keychains/System.keychain \ CA.crtImportant parameters:
-d Add to an admin trust domain-r trustRoot Treat certificate as a trusted root-k Destination keychainFor system-wide browser trust, the destination is:
/Library/Keychains/System.keychain8.4 Safari on macOS
Section titled “8.4 Safari on macOS”Safari uses the macOS trust system.
After the CA is installed and marked trusted:
- Quit Safari completely.
- Reopen Safari.
- Reload the HTTPS service.
In most cases, a full system restart is not required.
8.5 Chrome and Edge on macOS
Section titled “8.5 Chrome and Edge on macOS”Chrome and Edge on macOS use the platform’s certificate trust mechanisms for normal server-certificate validation.
Install the CA in the System keychain and configure its trust policy. Then fully restart the browser.
8.6 Firefox on macOS
Section titled “8.6 Firefox on macOS”Firefox may use operating-system enterprise roots when appropriately configured.
Check:
about:configSet:
security.enterprise_roots.enabled = trueAlternatively, import the CA directly into Firefox:
Settings→ Privacy & Security→ Certificates→ View Certificates→ Authorities→ ImportFor managed environments, use Firefox enterprise policies instead of manually modifying each profile.
8.7 Verify installation
Section titled “8.7 Verify installation”Using Keychain Access:
- Select the System keychain.
- Open Certificates.
- Find the private root.
- Compare its SHA-256 fingerprint.
- Confirm that the trust setting is enabled.
From the command line:
security find-certificate \ -a \ -c "Example Private Root CA" \ /Library/Keychains/System.keychain8.8 Remove the CA from macOS
Section titled “8.8 Remove the CA from macOS”Using Keychain Access:
- Open the System keychain.
- Select the CA.
- Confirm its fingerprint.
- Delete it.
- Authenticate as administrator.
From the command line, identify the certificate and remove it carefully using the security utility. Avoid deleting by an ambiguous common name where multiple certificates share the same name.
9. Linux Desktops
Section titled “9. Linux Desktops”Linux trust deployment is less uniform because there may be several trust mechanisms:
Operating-system CA bundleNSS certificate databaseBrowser-specific certificate storeApplication-specific certificate bundleContainer-specific certificate bundleLanguage-runtime-specific storeInstalling a CA in the operating-system trust store is necessary but may not be sufficient for every browser or application.
9.1 Debian and Ubuntu
Section titled “9.1 Debian and Ubuntu”The certificate must:
- be PEM encoded;
- have a
.crtextension; - contain one certificate per file.
Install it:
sudo cp CA.crt \ /usr/local/share/ca-certificates/example-private-root-ca.crtUpdate the trust store:
sudo update-ca-certificatesUbuntu documents placing a PEM-formatted root CA in the local CA directory and running update-ca-certificates.
The tool incorporates .crt files found below:
/usr/local/share/ca-certificatesinto the machine trust bundle.
Expected output is similar to:
Updating certificates in /etc/ssl/certs...1 added, 0 removed; done.9.2 Verify on Debian or Ubuntu
Section titled “9.2 Verify on Debian or Ubuntu”Check the generated links:
ls -l /etc/ssl/certs | grep -i exampleTest OpenSSL:
openssl verify \ -CApath /etc/ssl/certs \ server.crtTest an HTTPS endpoint:
curl -v [https://service.example.internal/](https://service.example.internal/)A successful curl test verifies the system/OpenSSL trust path, but it does not guarantee that Firefox uses the same trust store.
9.3 Remove from Debian or Ubuntu
Section titled “9.3 Remove from Debian or Ubuntu”sudo rm \ /usr/local/share/ca-certificates/example-private-root-ca.crtsudo update-ca-certificates --freshThen restart affected browsers and applications.
9.4 Red Hat Enterprise Linux, Fedora, Rocky Linux and AlmaLinux
Section titled “9.4 Red Hat Enterprise Linux, Fedora, Rocky Linux and AlmaLinux”A common trust-anchor location is:
/etc/pki/ca-trust/source/anchors/Install:
sudo cp CA.crt \ /etc/pki/ca-trust/source/anchors/example-private-root-ca.crtUpdate:
sudo update-ca-trust extractVerify using:
trust list | grep -A10 -B2 "Example Private Root CA"Exact commands can vary by distribution and version.
9.5 Chrome and Chromium on Linux
Section titled “9.5 Chrome and Chromium on Linux”Chrome and Chromium trust behavior on Linux depends on distribution integration and browser packaging.
Possible packaging differences include:
native distribution packageSnapFlatpakvendor-supplied packageChromium distribution packageStart by installing the CA into the operating-system trust store.
If Chrome or Chromium still rejects it:
- Fully stop the browser.
- Confirm that command-line tools trust the CA.
- Inspect the browser certificate-management interface.
- Check whether Snap or Flatpak sandboxing uses a different trust bundle.
- Verify the browser package’s distribution-specific trust integration.
9.6 Firefox on Linux
Section titled “9.6 Firefox on Linux”Firefox may maintain an NSS certificate database distinct from the operating-system OpenSSL trust bundle.
The most deterministic manual procedure is:
Firefox→ Settings→ Privacy & Security→ Certificates→ View Certificates→ Authorities→ ImportSelect CA.crt and enable trust for websites.
This trust is associated with the Firefox profile.
For multiple devices or profiles, prefer:
- Firefox enterprise policy;
- a managed NSS deployment;
- distribution-supported system-trust integration.
Do not assume that a successful curl test means Firefox will trust the CA.
10. Android Phones and Tablets
Section titled “10. Android Phones and Tablets”10.1 Important Android distinction
Section titled “10.1 Important Android distinction”Android has at least two relevant trust sources:
System-installed CAsUser-installed CAsA manually installed private CA is normally placed in the user credential store, not in the read-only system CA store.
This distinction affects application behavior.
Installing the CA may allow the browser to trust local HTTPS sites, but it does not guarantee that every Android application will trust it.
10.2 Transfer the certificate
Section titled “10.2 Transfer the certificate”Transfer only the public certificate:
CA.crtor, when necessary for compatibility:
CA.cerPossible transfer mechanisms include:
- USB;
- managed file deployment;
- MDM;
- a controlled internal portal;
- secure messaging;
- email.
Email is convenient but weak as a trust-establishment method. The certificate fingerprint should be verified independently.
10.3 Manual installation
Section titled “10.3 Manual installation”Android menu names vary substantially by:
- Android version;
- manufacturer;
- device management;
- work profile;
- security policy.
A common path is:
Settings→ Security & privacy→ More security settings→ Encryption & credentials→ Install a certificate→ CA certificateOther manufacturers may show:
Settings→ Security→ Credential storage→ Install from storageor:
Settings→ Biometrics and security→ Other security settings→ Install from device storage→ CA certificateSelect:
CA certificateDo not select:
VPN and app user certificateWi-Fi certificateUser identity certificateThe device will display a warning because a newly trusted CA can be used to inspect or authenticate encrypted connections.
A secure screen lock may be required.
10.4 Chrome on Android
Section titled “10.4 Chrome on Android”Chrome on Android normally integrates with Android’s platform certificate validation.
After installing the CA:
- Fully close Chrome.
- Remove it from the recent-apps view.
- Reopen it.
- Load the HTTPS service.
- Inspect the exact error if it still fails.
Potential remaining causes include:
- missing SAN;
- hostname mismatch;
- missing intermediate;
- expired certificate;
- unsupported certificate parameters;
- application or browser policy;
- managed-device restrictions.
10.5 Firefox on Android
Section titled “10.5 Firefox on Android”Firefox on Android should be tested separately rather than assuming identical behavior to Chrome.
Mobile Firefox behavior can vary by:
- release;
- certificate implementation;
- Android version;
- enterprise configuration.
When a private root is not accepted, check Firefox’s current certificate settings and enterprise policy support for the specific deployed version.
Desktop Firefox’s certificate-import interface should not be assumed to exist in exactly the same form on Android.
10.6 Native Android applications are different from browsers
Section titled “10.6 Native Android applications are different from browsers”Android applications targeting Android 7.0/API level 24 or later do not automatically trust user-added CAs by default unless their Network Security Configuration permits that trust.
Therefore this result is possible:
Chrome opens the site successfully.The native Android app rejects the same certificate.This does not necessarily mean the CA was installed incorrectly.
An application you control can explicitly trust user-added CAs.
AndroidManifest.xml:
<application android:networkSecurityConfig="@xml/network_security_config" ...></application>res/xml/network_security_config.xml:
<?xml version="1.0" encoding="utf-8"?><network-security-config> <base-config> <trust-anchors> <certificates src="system" /> <certificates src="user" /> </trust-anchors> </base-config></network-security-config>A safer domain-scoped configuration is:
<?xml version="1.0" encoding="utf-8"?><network-security-config> <domain-config> <domain includeSubdomains="true"> example.internal </domain> <trust-anchors> <certificates src="system" /> <certificates src="user" /> </trust-anchors> </domain-config></network-security-config>Android officially provides Network Security Configuration for defining custom and user-supplied trust anchors.
10.7 Certificate pinning
Section titled “10.7 Certificate pinning”An application using certificate or public-key pinning may reject the certificate even when:
- the private root CA is installed;
- the chain is valid;
- the hostname is correct;
- the browser accepts the site.
Installing CA.crt does not override application-level pinning.
10.8 Work profiles and managed devices
Section titled “10.8 Work profiles and managed devices”An Android work profile can have a different security policy and credential scope from the personal profile.
A CA installed in the personal profile may not be available to:
- work-profile applications;
- managed Chrome;
- corporate VPN components;
- managed network configurations.
For an organization, deploy the CA using Android Enterprise or MDM rather than relying on users to install it manually.
10.9 Removing the CA from Android
Section titled “10.9 Removing the CA from Android”A typical path is:
Settings→ Security & privacy→ More security settings→ Encryption & credentials→ Trusted credentials→ Useror:
Settings→ Security→ Encryption & credentials→ User credentialsSelect the CA, verify its name and fingerprint where displayed, and remove it.
Avoid using a broad Clear credentials function unless removing every user-installed credential is intended.
11. iPhone and iPad
Section titled “11. iPhone and iPad”11.1 iOS and iPadOS require two operations
Section titled “11.1 iOS and iPadOS require two operations”For a root CA installed manually from a downloaded or transferred certificate, there are two distinct steps:
1. Install the certificate profile.2. Enable full trust for the root certificate.Completing only the first step is a very common cause of continuing TLS errors.
Apple explicitly states that SSL/TLS trust must be enabled manually for a root certificate installed from email or a website.
11.2 Transfer the CA
Section titled “11.2 Transfer the CA”Transfer only:
CA.crtor:
CA.cerCommon methods:
- AirDrop;
- secure email;
- a controlled HTTPS download;
- Apple Configurator;
- MDM;
- a signed configuration profile.
For anything beyond a few personal devices, a signed profile or MDM is preferable.
11.3 Step 1: Install the profile
Section titled “11.3 Step 1: Install the profile”Open the certificate file on the iPhone or iPad.
The device should indicate that a profile has been downloaded.
Then open:
Settings→ General→ VPN & Device ManagementA temporary direct entry may also appear as:
Settings→ Profile DownloadedSelect the downloaded profile.
Review:
- the certificate name;
- the issuing entity;
- the profile source;
- any warnings.
Tap Install and enter the device passcode when requested.
At this point, the certificate is installed, but manual SSL/TLS trust may still be disabled.
11.4 Step 2: Enable full trust
Section titled “11.4 Step 2: Enable full trust”Go to:
Settings→ General→ About→ Certificate Trust SettingsUnder:
Enable Full Trust for Root Certificatesenable the private CA.
Confirm the security warning.
Apple documents this exact second step for manually installed root certificates.
The final state must be:
Profile installed: YesFull trust enabled: Yes11.5 Safari on iPhone and iPad
Section titled “11.5 Safari on iPhone and iPad”Safari uses the iOS/iPadOS system trust configuration.
After installing the profile and enabling full trust:
- Close Safari.
- Remove it from the application switcher if necessary.
- Reopen Safari.
- Load the HTTPS site.
- Check the exact error if it is still rejected.
Typical remaining errors include:
- hostname mismatch;
- missing SAN;
- expired leaf certificate;
- missing intermediate;
- invalid certificate purpose;
- incorrect device time.
11.6 Chrome, Edge and Firefox on iPhone and iPad
Section titled “11.6 Chrome, Edge and Firefox on iPhone and iPad”Browsers on iOS and iPadOS operate within Apple’s platform constraints and generally depend on the system networking and trust environment.
The private root should therefore be installed through the device’s certificate-profile mechanism and enabled under Certificate Trust Settings.
Do not expect a desktop-style browser-specific CA store to be the primary deployment method on iOS.
11.7 Managed iPhones and iPads
Section titled “11.7 Managed iPhones and iPads”For multiple or corporate devices, use:
- Apple MDM;
- Apple Configurator;
- a signed configuration profile;
- automated device enrollment.
Managed deployment provides:
- centralized installation;
- consistent profile contents;
- inventory;
- controlled removal;
- less opportunity for users to install the wrong CA;
- easier CA rollover.
Apple’s deployment documentation distinguishes managed certificate delivery from manual profile installation.
11.8 Remove the CA from iPhone or iPad
Section titled “11.8 Remove the CA from iPhone or iPad”First disable full trust:
Settings→ General→ About→ Certificate Trust SettingsThen remove the profile:
Settings→ General→ VPN & Device Management→ Select profile→ Remove ProfileEnter the device passcode when requested.
12. ChromeOS
Section titled “12. ChromeOS”12.1 Personal ChromeOS device
Section titled “12.1 Personal ChromeOS device”On an unmanaged ChromeOS device, certificate management is normally accessed through the operating system or Chrome settings.
Import the public CA certificate as a certificate authority and explicitly assign trust for HTTPS website identification.
Exact interface labels may vary by ChromeOS release.
12.2 Managed ChromeOS fleet
Section titled “12.2 Managed ChromeOS fleet”For managed devices, deploy the CA through the Google Admin console rather than manually importing it on each device.
Google documents importing a TLS/SSL CA into the Admin console and deploying it to ChromeOS devices.
Managed deployment is the preferred option for:
- schools;
- companies;
- kiosks;
- shared ChromeOS devices;
- large device fleets.
12.3 ChromeOS and Android applications
Section titled “12.3 ChromeOS and Android applications”Android applications running on ChromeOS may not automatically share every certificate available to the ChromeOS browser environment.
Google provides certificate-synchronization controls for managed ChromeOS environments where Android applications require access to ChromeOS CA certificates.
Test these separately:
Chrome browser on ChromeOSAndroid app running on ChromeOSLinux application running in CrostiniThey may use different trust mechanisms.
13. Browser-Specific Summary
Section titled “13. Browser-Specific Summary”| Platform | Chrome/Edge | Safari | Firefox |
|---|---|---|---|
| Windows | Windows root store | Not applicable | Windows enterprise roots or Firefox import |
| macOS | macOS Keychain | macOS Keychain | Enterprise roots or Firefox import |
| Linux | Distribution/package dependent | Not applicable | Often Firefox/NSS import or managed integration |
| Android | Android user CA store, subject to policy | Not applicable | Must be tested for deployed mobile version |
| iOS/iPadOS | Apple system trust | Apple system trust | Apple system trust |
| ChromeOS | ChromeOS certificate management | Not applicable | Platform/package dependent |
The safest operational rule is:
Install the CA in the operating-system trust store,then explicitly test every required browser and application.Do not assume that success in one browser proves that every browser or native application uses the same trust store.
14. Managed Deployment at Scale
Section titled “14. Managed Deployment at Scale”Manual installation is appropriate for:
- a development workstation;
- a home lab;
- a small test environment;
- a few personally controlled devices.
For larger environments, use centralized deployment.
14.1 Windows Active Directory Group Policy
Section titled “14.1 Windows Active Directory Group Policy”A typical domain deployment location is:
Computer Configuration→ Policies→ Windows Settings→ Security Settings→ Public Key Policies→ Trusted Root Certification AuthoritiesImport the public CA certificate there.
Use computer policy when the trust must apply machine-wide.
Advantages:
- automatic installation;
- consistent scope;
- centralized updates;
- removal through policy;
- no user interaction;
- support for domain-joined computers.
14.2 Microsoft Intune
Section titled “14.2 Microsoft Intune”Use a trusted-certificate profile to deploy the root CA to managed:
- Windows devices;
- Android devices;
- iOS/iPadOS devices;
- macOS devices.
Keep the trusted-root profile separate from any client identity or SCEP/PKCS profile.
14.3 Apple MDM
Section titled “14.3 Apple MDM”Deploy a certificate payload containing the root CA.
Use MDM for:
- supervised iPhones;
- managed iPads;
- managed Macs;
- certificate rollover;
- removal when management ends.
14.4 Android Enterprise
Section titled “14.4 Android Enterprise”Deploy the CA using the device-management policy appropriate to:
- fully managed devices;
- dedicated devices;
- corporate-owned work profiles;
- personally owned work profiles.
Confirm whether the CA is available to:
- all device applications;
- only work-profile applications;
- managed Chrome;
- specific managed network configurations.
14.5 Firefox enterprise policy
Section titled “14.5 Firefox enterprise policy”Example policy:
{ "policies": { "Certificates": { "ImportEnterpriseRoots": true } }}Where direct certificate installation into Firefox is required, use Mozilla’s supported enterprise certificate policies rather than scripting profile internals.
15. End-to-End Verification
Section titled “15. End-to-End Verification”15.1 Inspect the certificate served by the HTTPS endpoint
Section titled “15.1 Inspect the certificate served by the HTTPS endpoint”openssl s_client \ -connect service.example.internal:443 \ -servername service.example.internal \ -showcertsThe -servername argument sends Server Name Indication and is essential when multiple HTTPS names share an endpoint.
15.2 Display the received leaf certificate
Section titled “15.2 Display the received leaf certificate”openssl s_client \ -connect service.example.internal:443 \ -servername service.example.internal \ </dev/null 2>/dev/null |openssl x509 \ -noout \ -subject \ -issuer \ -serial \ -dates \ -fingerprint \ -sha256 \ -ext subjectAltName \ -ext extendedKeyUsageVerify:
Subject: expected service identityIssuer: expected private CA or intermediateValidity: currentSAN: exact hostname used in browserEKU: TLS Web Server Authentication15.3 Verify with a specific CA without installing it
Section titled “15.3 Verify with a specific CA without installing it”curl \ --cacert CA.crt \ -v \ [https://service.example.internal/](https://service.example.internal/)This isolates server-certificate correctness from operating-system trust installation.
Interpretation:
curl --cacert worksbrowser failsLikely causes:
- CA not installed in the browser’s effective trust store;
- browser process not restarted;
- Firefox-specific trust;
- browser policy;
- application-specific validation.
If:
curl --cacert failsthe problem is probably not simply local CA installation. Inspect:
- hostname;
- SAN;
- chain;
- intermediate;
- validity;
- key usage;
- endpoint configuration.
15.4 Verify using the operating-system trust store
Section titled “15.4 Verify using the operating-system trust store”After installation:
curl -v [https://service.example.internal/](https://service.example.internal/)Do not supply --cacert.
Success indicates that curl and its TLS backend can locate the root through the system trust configuration.
15.5 Verify the chain explicitly
Section titled “15.5 Verify the chain explicitly”Direct root issuer:
openssl verify \ -CAfile CA.crt \ server.crtIntermediate issuer:
openssl verify \ -CAfile root-CA.crt \ -untrusted intermediate-CA.crt \ server.crt15.6 Verify hostname matching
Section titled “15.6 Verify hostname matching”openssl verify \ -CAfile CA.crt \ -verify_hostname service.example.internal \ server.crtFor an IP address:
openssl verify \ -CAfile CA.crt \ -verify_ip 192.168.1.50 \ server.crt16. Troubleshooting by Browser Error
Section titled “16. Troubleshooting by Browser Error”16.1 NET::ERR_CERT_AUTHORITY_INVALID
Section titled “16.1 NET::ERR_CERT_AUTHORITY_INVALID”Likely causes:
- root CA not installed;
- CA installed in the wrong store;
- wrong CA installed;
- server certificate issued by another CA;
- missing intermediate;
- browser does not use the expected system trust store.
16.2 SEC_ERROR_UNKNOWN_ISSUER
Section titled “16.2 SEC_ERROR_UNKNOWN_ISSUER”Common in Firefox.
Likely causes:
- Firefox is not using operating-system enterprise roots;
- CA not imported into Firefox;
- missing intermediate;
- wrong certificate chain.
Check:
security.enterprise_roots.enabled16.3 NET::ERR_CERT_COMMON_NAME_INVALID
Section titled “16.3 NET::ERR_CERT_COMMON_NAME_INVALID”This usually means trust is not the main problem.
Check:
- exact browser hostname;
- certificate SAN;
- whether an IP was used;
- wildcard scope.
16.4 NET::ERR_CERT_DATE_INVALID
Section titled “16.4 NET::ERR_CERT_DATE_INVALID”Check:
- client date and time;
Not Before;Not After;- certificate renewal;
- CA validity;
- intermediate validity.
16.5 ERR_CERT_INVALID
Section titled “16.5 ERR_CERT_INVALID”This is generic and may indicate:
- malformed certificate;
- invalid signature;
- unsupported key;
- invalid basic constraints;
- invalid usage;
- chain-building failure.
Inspect the certificate using OpenSSL.
16.6 Browser works, command-line application fails
Section titled “16.6 Browser works, command-line application fails”The application may use:
- its own CA bundle;
- Java truststore;
- Python
certifi; - Node.js CA bundle;
- an embedded OpenSSL bundle;
- a container-local CA store.
Installing the CA in the browser or operating system may not update those stores.
16.7 Command-line application works, browser fails
Section titled “16.7 Command-line application works, browser fails”Likely causes:
- browser-specific store;
- Firefox NSS database;
- browser not restarted;
- managed browser policy;
- profile-specific trust;
- browser-specific certificate restrictions.
16.8 Desktop browser works, mobile application fails
Section titled “16.8 Desktop browser works, mobile application fails”Likely causes:
- CA not installed on the mobile device;
- iOS full trust not enabled;
- Android app does not trust user-added CAs;
- certificate pinning;
- work-profile separation;
- mobile endpoint using a different hostname.
16.9 One mobile browser works and another fails
Section titled “16.9 One mobile browser works and another fails”Do not assume all mobile browsers use identical trust behavior.
Record:
- OS version;
- browser and version;
- personal versus managed profile;
- whether the CA is user-installed or managed;
- exact error;
- exact hostname.
17. CA Renewal and Rollover
Section titled “17. CA Renewal and Rollover”A root CA should not be replaced without planning.
If the existing CA expires or is replaced abruptly, every certificate issued under it can become untrusted on every client simultaneously.
17.1 Safe rollover procedure
Section titled “17.1 Safe rollover procedure”- Create the new CA securely.
- Keep the old CA trusted during migration.
- Distribute the new public CA certificate.
- Verify that clients trust both old and new roots.
- Begin issuing server certificates under the new hierarchy.
- Replace server certificates gradually.
- Test every required platform.
- Remove the old CA only after no active certificate depends on it.
- Document the old CA’s retirement.
During the overlap:
Trusted roots: Old private root CA New private root CAAfter migration:
Trusted roots: New private root CA17.2 Do not reuse the same subject carelessly
Section titled “17.2 Do not reuse the same subject carelessly”Two root certificates can have the same subject name but different keys.
For example:
CN=Example Private Root CAmay exist in both an old and new certificate.
Always identify roots using:
- SHA-256 fingerprint;
- serial number;
- validity period;
- subject key identifier.
Do not identify a root only by its display name.
18. Recommended Deployment Checklist
Section titled “18. Recommended Deployment Checklist”Certificate preparation
Section titled “Certificate preparation”[ ] CA.crt contains only the public root certificate[ ] No private key is included[ ] Basic Constraints contains CA:TRUE[ ] Key Usage permits Certificate Sign[ ] SHA-256 fingerprint has been recorded[ ] PEM and DER versions have matching fingerprints[ ] CA validity period has been checkedServer-certificate preparation
Section titled “Server-certificate preparation”[ ] Server certificate is currently valid[ ] Exact browser hostname appears in subjectAltName[ ] IP access uses an IP SAN when applicable[ ] Extended Key Usage permits TLS Web Server Authentication[ ] Server sends required intermediate certificates[ ] Server does not depend on cached intermediates[ ] Chain order is leaf followed by intermediateWindows
Section titled “Windows”[ ] CA installed in Trusted Root Certification Authorities[ ] Correct machine or user scope selected[ ] Fingerprint verified after installation[ ] Chrome restarted and tested[ ] Edge restarted and tested[ ] Firefox enterprise roots or direct import tested[ ] CA installed in System keychain[ ] Trust configured appropriately[ ] Fingerprint verified[ ] Safari tested[ ] Chrome/Edge tested[ ] Firefox tested separately[ ] CA installed in distribution trust directory[ ] Trust-update command executed[ ] curl/OpenSSL tested[ ] Chrome or Chromium tested[ ] Firefox tested separately[ ] Snap/Flatpak packaging consideredAndroid
Section titled “Android”[ ] CA installed specifically as a CA certificate[ ] User or work-profile scope understood[ ] Chrome tested[ ] Other required browsers tested separately[ ] Native applications tested separately[ ] Certificate pinning considerediPhone and iPad
Section titled “iPhone and iPad”[ ] Certificate profile installed[ ] Full trust enabled separately[ ] Safari restarted and tested[ ] Other required browsers tested[ ] Profile removal procedure documentedManaged deployment
Section titled “Managed deployment”[ ] Central deployment mechanism selected[ ] Device targeting documented[ ] Fingerprint verified in deployment package[ ] Removal policy defined[ ] CA rollover procedure defined[ ] Lost or retired device process defined19. Final Operational Model
Section titled “19. Final Operational Model”Successful private-CA browser trust requires all of the following:
1. The correct public root CA is installed in the effective trust store.2. The server sends a valid leaf certificate.3. The server sends every required intermediate certificate.4. The hostname matches a SAN in the leaf certificate.5. The certificate is valid at the client’s current date and time.6. The certificate permits TLS server authentication.7. The browser or application accepts the selected trust store.8. No application-level certificate pinning rejects the chain.The most important platform-specific points are:
Windows:Install into Trusted Root Certification Authorities, preferablyat Local Computer scope.Firefox:Verify operating-system enterprise-root integration or importthe CA explicitly.macOS:Install into the System keychain and set the required trust policy.Linux:Update the operating-system trust store, but test Firefox andsandboxed browser packages separately.Android:Install as a CA certificate, but do not assume native applicationstrust user-added CAs.iPhone and iPad:Install the profile and then separately enable Full Trust underCertificate Trust Settings.A certificate warning should never be bypassed merely by clicking through it. The correct solution is to establish a valid certificate chain, install the intended trust anchor through a controlled process, and verify the certificate identity and fingerprint on every target platform.