CA Root Certificate Guide
This guide explains how to download and install CA root certificates so that your system or browser trusts certificates issued by this CA.
What is a CA Root Certificate?
Section titled “What is a CA Root Certificate?”A CA (Certificate Authority) root certificate is the root node of a certificate trust chain. When you create a private CA and use it to issue server certificates, clients need to trust this CA root certificate to automatically trust all certificates it issues.
Download CA Root Certificate
Section titled “Download CA Root Certificate”- Go to Console -> Self-signed Certificates -> CA Management
- Find the CA you need to download, click the Download button
- In the popup dialog, click Download to save the
xxx-ca.crtfile
Install CA Root Certificate
Section titled “Install CA Root Certificate”Method 1: Keychain Access (Recommended)
Section titled “Method 1: Keychain Access (Recommended)”- Double-click the downloaded
.crtfile - In the “Keychain Access” popup, choose to add to the System keychain
- Find the newly added certificate and double-click to open it
- Expand the Trust section
- Change “When using this certificate” to Always Trust
- Close the window and enter your password to confirm
Method 2: Command Line
Section titled “Method 2: Command Line”sudo security add-trusted-cert -d -r trustRoot \ -k /Library/Keychains/System.keychain \ ~/Downloads/xxx-ca.crtMethod 1: GUI
Section titled “Method 1: GUI”- Double-click the downloaded
.crtfile - Click Install Certificate
- Select Local Machine, click Next
- Select Place all certificates in the following store
- Click Browse, select Trusted Root Certification Authorities
- Complete the installation
Method 2: Command Line (Administrator)
Section titled “Method 2: Command Line (Administrator)”certutil -addstore -f "ROOT" C:\path\to\xxx-ca.crtUbuntu/Debian
Section titled “Ubuntu/Debian”# Copy certificate to trust directorysudo cp xxx-ca.crt /usr/local/share/ca-certificates/
# Update certificate trust storesudo update-ca-certificatesCentOS/RHEL/Fedora
Section titled “CentOS/RHEL/Fedora”# Copy certificatesudo cp xxx-ca.crt /etc/pki/ca-trust/source/anchors/
# Update trust storesudo update-ca-trustChrome
Section titled “Chrome”Chrome uses the system certificate store, so it will work automatically after installing to the system.
Firefox
Section titled “Firefox”Firefox uses its own certificate store and requires separate import:
- Open Settings -> Privacy & Security
- Scroll to Certificates section, click View Certificates
- Select the Authorities tab
- Click Import, select the
.crtfile - Check Trust this CA to identify websites
- Click OK
Verify Installation
Section titled “Verify Installation”After installation, you can verify with the following:
# Test with curl (assuming the server certificate was issued by this CA)curl https://your-server.local
# If there's no error, the CA is trustedImportant Notes
Section titled “Important Notes”Browser still shows “Not Secure” after installation?
Section titled “Browser still shows “Not Secure” after installation?”- Verify the certificate is correctly installed in the system trust store
- Restart the browser
- Check if the server certificate’s domain matches the access address
- Firefox users need to import separately into the browser
How to remove an installed CA?
Section titled “How to remove an installed CA?”- macOS: Open Keychain Access, find the certificate and delete it
- Windows: Run
certmgr.msc, delete from “Trusted Root Certification Authorities” - Linux: Delete the corresponding
.crtfile, then runupdate-ca-certificatesorupdate-ca-trust