Using Shared System Certificates

    In Fedora, the consolidated system-wide trust store is located in the and /usr/share/pki/ca-trust-source/ directories. The trust settings in /usr/share/pki/ca-trust-source/ are processed with lower priority than settings in /etc/pki/ca-trust/.

    Certificate files are treated depending on the subdirectory they are installed to the following directories:

    • for trust anchors

      • /usr/share/pki/ca-trust-source/anchors/ or

      • /etc/pki/ca-trust/source/anchors/

    • for distrusted certificates

      • /usr/share/pki/ca-trust-source/blacklist/ or

    To add a certificate in the simple PEM or DER file formats to the list of CAs trusted on the system, copy the certificate file to the /usr/share/pki/ca-trust-source/anchors/ or /etc/pki/ca-trust/source/anchors/ directory, for example:

    To update the system-wide trust store configuration, use the update-ca-trust command:

    1. # update-ca-trust

    While the Firefox browser is able to use an added certificate without executing update-ca-trust, it is recommended to run update-ca-trust after a CA change. Also note that browsers, such as Firefox, Epiphany, or Chromium, cache files, and you might need to clear the browser’s cache or restart your browser to load the current system certificates configuration.

    To list, extract, add, remove, or change trust anchors, use the command. To see the built-in help for this command, enter it without any arguments or with the --help directive:

    1. $ trust list
    2. pkcs11:id=%d2%87%b4%e3%df%37%27%93%55%f6%56%ea%81%e5%36%cc%8c%1e%3f%bd;type=cert
    3. type: certificate
    4. label: ACCVRAIZ1
    5. trust: anchor
    6. category: authority
    7.  
    8. type: certificate
    9. label: ACEDICOM Root
    10. trust: anchor
    11. category: authority
    12. ...
    13. [output has been truncated]

    To store a trust anchor into the system-wide trust store, use the trust anchor sub-command and specify a path.to a certificate, for example:

    To remove a certificate, use either a path.to a certificate or an ID of a certificate:

    1. # trust anchor --remove path.to/certificate.crt
    2. # trust anchor --remove "pkcs11:id=%AA%BB%CC%DD%EE;type=cert"

    More information

    All sub-commands of the trust commands offer a detailed built-in help, for example:

    For more information, see the following man pages:

    • trust(1)