update-ca-trust Command on CentOS

This section describes how to use the update-ca-trust Command to manage trusted root CA certificates on CentOS computers.

If you are using CentOS computers, you should the update-ca-trust command to manage trusted root CA certificates.

The update-ca-trust command uses 2 input directories to process new root CA certificates with low and high priorities:

Depending on the certificate file format and trust status of the new certificate, you can drop it in the input directory at 3 places:

Whenever new certificates are dropped in an input directory, you should run the "sudo update-ca-trust extract" command to update system root CA certificates in 4 directories using different formats:

Maintaining root CA certificates in 4 different formats allows applications to select a format that matches their needs.

Here is the /etc/pki/ca-trust/extracted/ directory tree on a CentOS 8 computer with root CA certificates stored in 4 different formats:

herong$ ls -l /etc/pki/ca-trust/extracted/
  drwxr-xr-x. 2 root root  39 Dec 12  2022 edk2
  drwxr-xr-x. 2 root root  35 Dec 12  2022 java
  drwxr-xr-x. 2 root root  47 Dec 12  2022 openssl
  drwxr-xr-x. 2 root root 130 Aug 13  2024 pem

herong$ tree /etc/pki/ca-trust/extracted/
  |-- edk2
  |   |-- cacerts.bin
  |-- java
  |   |-- cacerts
  |-- openssl
  |   |-- ca-bundle.trust.crt
  |-- pem
  |   |-- email-ca-bundle.pem
  |   |-- objsign-ca-bundle.pem
  |   |-- tls-ca-bundle.pem
  |   |-- tls-ca-bundle.pem-bck

For older applications that read root CA certificates at the standard location of /etc/pki/tls/certs, 2 symbolic links are used to access root CA certificates in 2 different formats:

herong$ ls -l /etc/pki/tls/certs
  ca-bundle.crt -> /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
  ca-bundle.trust.crt -> 
    /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt

Table of Contents

 About This Book

 Introduction of PKI (Public Key Infrastructure)

 Introduction of HTTPS (Hypertext Transfer Protocol Secure)

 Using HTTPS with Google Chrome

 Using HTTPS with Mozilla Firefox

 Using HTTPS with Microsoft Edge

 Using HTTPS with Apple Safari

 Using HTTPS with IE (Internet Explorer)

 Android and Server Certificate

 iPhone and Server Certificate

 Windows Certificate Stores and Console

 RDP (Remote Desktop Protocol) and Server Certificate

 macOS Certificate Stores and Keychain Access

Linux Certificate Stores and Tools

 Root CA Certificate Location on Linux

 update-ca-certificates Command on Ubuntu

update-ca-trust Command on CentOS

 "certutil" for NSS Certificate Databases on Linux

 Perl Scripts Communicating with HTTPS Servers

 PHP Scripts Communicating with HTTPS Servers

 Python Scripts Communicating with HTTPS Servers

 Java Programs Communicating with HTTPS Servers

 .NET Programs Communicating with HTTPS Servers

 CAcert.org - Root CA Offering Free Certificates

 PKI CA Administration - Issuing Certificates

 Comodo Free Personal Certificate

 Digital Signature - Microsoft Word

 Digital Signature - OpenOffice.org 3

 S/MIME and Email Security

 PKI (Public Key Infrastructure) Terminology

 Archived Tutorials

 References

 Full Version in PDF/EPUB