|
|
b4bc2f |
////
|
|
|
b4bc2f |
Copyright (C) 2013 Red Hat, Inc.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
This program is free software; you can redistribute it and/or modify
|
|
|
b4bc2f |
it under the terms of the GNU General Public License as published by
|
|
|
b4bc2f |
the Free Software Foundation; either version 2 of the License, or
|
|
|
b4bc2f |
(at your option) any later version.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
This program is distributed in the hope that it will be useful,
|
|
|
b4bc2f |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
b4bc2f |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
b4bc2f |
GNU General Public License for more details.
|
|
|
b4bc2f |
////
|
|
|
b4bc2f |
|
|
|
b4bc2f |
|
|
|
b4bc2f |
update-ca-trust(8)
|
|
|
b4bc2f |
==================
|
|
|
b4bc2f |
:doctype: manpage
|
|
|
b4bc2f |
:man source: update-ca-trust
|
|
|
b4bc2f |
|
|
|
b4bc2f |
|
|
|
b4bc2f |
NAME
|
|
|
b4bc2f |
----
|
|
|
b4bc2f |
update-ca-trust - manage consolidated and dynamic configuration of CA
|
|
|
b4bc2f |
certificates and associated trust
|
|
|
b4bc2f |
|
|
|
b4bc2f |
|
|
|
b4bc2f |
SYNOPSIS
|
|
|
b4bc2f |
--------
|
|
|
b4bc2f |
*update-ca-trust* ['COMMAND']
|
|
|
b4bc2f |
|
|
|
b4bc2f |
|
|
|
b4bc2f |
DESCRIPTION
|
|
|
b4bc2f |
-----------
|
|
|
b4bc2f |
update-ca-trust(8) is used to manage a consolidated and dynamic configuration
|
|
|
b4bc2f |
feature of Certificate Authority (CA) certificates and associated trust.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
The feature is available for new applications that read the
|
|
|
b4bc2f |
consolidated configuration files found in the /etc/pki/ca-trust/extracted directory
|
|
|
b4bc2f |
or that load the PKCS#11 module p11-kit-trust.so
|
|
|
b4bc2f |
|
|
|
b4bc2f |
Parts of the new feature are also provided in a way to make it useful
|
|
|
b4bc2f |
for legacy applications.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
Many legacy applications expect CA certificates and trust configuration
|
|
|
b4bc2f |
in a fixed location, contained in files with particular path and name,
|
|
|
b4bc2f |
or by referring to a classic PKCS#11 trust module provided by the
|
|
|
b4bc2f |
NSS cryptographic library.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
The dynamic configuration feature provides functionally compatible replacements
|
|
|
b4bc2f |
for classic configuration files and for the classic NSS trust module named libnssckbi.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
In order to enable legacy applications, that read the classic files or
|
|
|
b4bc2f |
access the classic module, to make use of the new consolidated and dynamic configuration
|
|
|
b4bc2f |
feature, the classic filenames have been changed to symbolic links.
|
|
|
b4bc2f |
The symbolic links refer to dynamically created and consolidated
|
|
|
b4bc2f |
output stored below the /etc/pki/ca-trust/extracted directory hierarchy.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
The output is produced using the 'update-ca-trust' command (without parameters),
|
|
|
b4bc2f |
or using the 'update-ca-trust extract' command.
|
|
|
b4bc2f |
In order to produce the output, a flexible set of source configuration
|
|
|
b4bc2f |
is read, as described in section <<sourceconf,SOURCE CONFIGURATION>>.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
In addition, the classic PKCS#11 module
|
|
|
b4bc2f |
is replaced with a new PKCS#11 module (p11-kit-trust.so) that dynamically
|
|
|
b4bc2f |
reads the same source configuration.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
|
|
|
b4bc2f |
[[sourceconf]]
|
|
|
b4bc2f |
SOURCE CONFIGURATION
|
|
|
b4bc2f |
--------------------
|
|
|
b4bc2f |
The dynamic configuration feature uses several source directories that
|
|
|
b4bc2f |
will be scanned for any number of source files. *It is important to select
|
|
|
b4bc2f |
the correct subdirectory for adding files, as the subdirectory defines how
|
|
|
b4bc2f |
contained certificates will be trusted or distrusted, and which file formats are read.*
|
|
|
b4bc2f |
|
|
|
b4bc2f |
Files in *subdirectories below the directory hierarchy /usr/share/pki/ca-trust-source/* contain CA certificates and
|
|
|
b4bc2f |
trust settings in the PEM file format. The trust settings found here will be
|
|
|
b4bc2f |
interpreted with a *low priority*.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
Files in *subdirectories below the directory hierarchy /etc/pki/ca-trust/source/* contain CA certificates and
|
|
|
b4bc2f |
trust settings in the PEM file format. The trust settings found here will be
|
|
|
b4bc2f |
interpreted with a *high priority*.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
.You may use the following rules of thumb to decide, whether your configuration files should be added to the /etc or rather to the /usr directory hierarchy:
|
|
|
b4bc2f |
* If you are manually adding a configuration file to a system, you probably
|
|
|
b4bc2f |
want it to override any other default configuration, and you most likely should
|
|
|
b4bc2f |
add it to the respective subdirectory in the /etc hierarchy.
|
|
|
b4bc2f |
* If you are creating a package that provides additional root CA certificates,
|
|
|
b4bc2f |
that is intended for distribution to several computer systems, but you still
|
|
|
b4bc2f |
want to allow the administrator to override your list, then your package should
|
|
|
b4bc2f |
add your files to the respective subdirectory in the /usr hierarchy.
|
|
|
b4bc2f |
* If you are creating a package that is supposed to override the default system
|
|
|
b4bc2f |
trust settings, that is intended for distribution to several computer systems, then your package should install the files to the respective
|
|
|
b4bc2f |
subdirectory in the /etc hierarchy.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
.*QUICK HELP 1*: To add a certificate in the simple PEM or DER file formats to the list of CAs trusted on the system:
|
|
|
b4bc2f |
* add it as a new file to directory /etc/pki/ca-trust/source/anchors/
|
|
|
b4bc2f |
* run 'update-ca-trust extract'
|
|
|
b4bc2f |
|
|
|
b4bc2f |
.*QUICK HELP 2*: If your certificate is in the extended BEGIN TRUSTED file format (which may contain distrust/blacklist trust flags, or trust flags for usages other than TLS) then:
|
|
|
b4bc2f |
* add it as a new file to directory /etc/pki/ca-trust/source/
|
|
|
b4bc2f |
* run 'update-ca-trust extract'
|
|
|
b4bc2f |
|
|
|
b4bc2f |
.In order to offer simplicity and flexibility, the way certificate files are treated depends on the subdirectory they are installed to.
|
|
|
b4bc2f |
* simple trust anchors subdirectory: /usr/share/pki/ca-trust-source/anchors/ or /etc/pki/ca-trust/source/anchors/
|
|
|
b4bc2f |
* simple blacklist (distrust) subdirectory: /usr/share/pki/ca-trust-source/blacklist/ or /etc/pki/ca-trust/source/blacklist/
|
|
|
b4bc2f |
* extended format directory: /usr/share/pki/ca-trust-source/ or /etc/pki/ca-trust/source/
|
|
|
b4bc2f |
|
|
|
b4bc2f |
.In the main directories /usr/share/pki/ca-trust-source/ or /etc/pki/ca-trust/source/ you may install one or multiple files in the following file formats:
|
|
|
b4bc2f |
* certificate files that include trust flags,
|
|
|
b4bc2f |
in the BEGIN/END TRUSTED CERTIFICATE file format
|
|
|
b4bc2f |
(any file name), which have been created using the openssl x509 tool
|
|
|
b4bc2f |
and the -addreject -addtrust options.
|
|
|
b4bc2f |
Bundle files with multiple certificates are supported.
|
|
|
b4bc2f |
* files in the p11-kit file format using the .p11-kit file name
|
|
|
b4bc2f |
extension, which can (e.g.) be used to distrust certificates
|
|
|
b4bc2f |
based on serial number and issuer name, without having the
|
|
|
b4bc2f |
full certificate available.
|
|
|
b4bc2f |
(This is currently an undocumented format, to be extended later.
|
|
|
b4bc2f |
For examples of the supported formats, see the files
|
|
|
b4bc2f |
shipped with the ca-certificates package.)
|
|
|
b4bc2f |
* certificate files without trust flags in either the DER file format or in
|
|
|
b4bc2f |
the PEM (BEGIN/END CERTIFICATE) file format (any file name). Such files
|
|
|
b4bc2f |
will be added with neutral trust, neither trusted nor distrusted.
|
|
|
b4bc2f |
They will simply be known to the system, which might be helpful to
|
|
|
b4bc2f |
assist cryptographic software in constructing chains of certificates.
|
|
|
b4bc2f |
(If you want a CA certificate in these file formats to be trusted, you
|
|
|
b4bc2f |
should remove it from this directory and move it to the
|
|
|
b4bc2f |
./anchors subdirectory instead.)
|
|
|
b4bc2f |
|
|
|
b4bc2f |
In the anchors subdirectories /usr/share/pki/ca-trust-source/anchors/ or /etc/pki/ca-trust/source/anchors/
|
|
|
b4bc2f |
you may install one or multiple certificates in either the DER file
|
|
|
b4bc2f |
format or in the PEM (BEGIN/END CERTIFICATE) file format.
|
|
|
b4bc2f |
Each certificate will be treated as *trusted* for all purposes.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
In the blacklist subdirectories /usr/share/pki/ca-trust-source/blacklist/ or /etc/pki/ca-trust/source/blacklist/
|
|
|
b4bc2f |
you may install one or multiple certificates in either the DER file
|
|
|
b4bc2f |
format or in the PEM (BEGIN/END CERTIFICATE) file format.
|
|
|
b4bc2f |
Each certificate will be treated as *distrusted* for all purposes.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
Please refer to the x509(1) manual page for the documentation of the
|
|
|
b4bc2f |
BEGIN/END CERTIFICATE and BEGIN/END TRUSTED CERTIFICATE file formats.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
Applications that rely on a static file for a list of trusted CAs
|
|
|
b4bc2f |
may load one of the files found in the /etc/pki/ca-trust/extracted
|
|
|
b4bc2f |
directory. After modifying any file in the
|
|
|
b4bc2f |
/usr/share/pki/ca-trust-source/ or /etc/pki/ca-trust/source/
|
|
|
b4bc2f |
directories or in any of their subdirectories, or after adding a file,
|
|
|
b4bc2f |
it is necessary to run the 'update-ca-trust extract' command,
|
|
|
b4bc2f |
in order to update the consolidated files in /etc/pki/ca-trust/extracted/ .
|
|
|
b4bc2f |
|
|
|
b4bc2f |
Applications that load the classic PKCS#11 module using filename libnssckbi.so
|
|
|
b4bc2f |
(which has been converted into a symbolic link pointing to the new module)
|
|
|
b4bc2f |
and any application capable of
|
|
|
b4bc2f |
loading PKCS#11 modules and loading p11-kit-trust.so, will benefit from
|
|
|
b4bc2f |
the dynamically merged set of certificates and trust information stored in the
|
|
|
b4bc2f |
/usr/share/pki/ca-trust-source/ and /etc/pki/ca-trust/source/ directories.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
|
|
|
b4bc2f |
[[extractconf]]
|
|
|
b4bc2f |
EXTRACTED CONFIGURATION
|
|
|
b4bc2f |
-----------------------
|
|
|
b4bc2f |
The directory /etc/pki/ca-trust/extracted/ contains generated CA certificate
|
|
|
b4bc2f |
bundle files which are created and updated, based on the <<sourceconf,SOURCE CONFIGURATION>>
|
|
|
b4bc2f |
by running the 'update-ca-trust extract' command.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
If your application isn't able to load the PKCS#11 module p11-kit-trust.so,
|
|
|
b4bc2f |
then you can use these files in your application to load a list of global
|
|
|
b4bc2f |
root CA certificates.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
Please never manually edit the files stored in this directory,
|
|
|
b4bc2f |
because your changes will be lost and the files automatically overwritten,
|
|
|
b4bc2f |
each time the 'update-ca-trust extract' command gets executed.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
In order to install new trusted or distrusted certificates,
|
|
|
b4bc2f |
please rather install them in the respective subdirectory below the
|
|
|
b4bc2f |
/usr/share/pki/ca-trust-source/ or /etc/pki/ca-trust/source/
|
|
|
b4bc2f |
directories, as described in the <<sourceconf,SOURCE CONFIGURATION>> section.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
The directory /etc/pki/ca-trust/extracted/java/ contains
|
|
|
b4bc2f |
a CA certificate bundle in the java keystore file format.
|
|
|
b4bc2f |
Distrust information cannot be represented in this file format,
|
|
|
b4bc2f |
and distrusted certificates are missing from these files.
|
|
|
b4bc2f |
File cacerts contains CA certificates trusted for TLS server authentication.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
The directory /etc/pki/ca-trust/extracted/openssl/ contains
|
|
|
b4bc2f |
CA certificate bundle files in the extended BEGIN/END TRUSTED CERTIFICATE file format,
|
|
|
b4bc2f |
as described in the x509(1) manual page.
|
|
|
b4bc2f |
File ca-bundle.trust.crt contains the full set of all trusted
|
|
|
b4bc2f |
or distrusted certificates, including the associated trust flags.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
The directory /etc/pki/ca-trust/extracted/pem/ contains
|
|
|
b4bc2f |
CA certificate bundle files in the simple BEGIN/END CERTIFICATE file format,
|
|
|
b4bc2f |
as decribed in the x509(1) manual page.
|
|
|
b4bc2f |
Distrust information cannot be represented in this file format,
|
|
|
b4bc2f |
and distrusted certificates are missing from these files.
|
|
|
b4bc2f |
File tls-ca-bundle.pem contains CA certificates
|
|
|
b4bc2f |
trusted for TLS server authentication.
|
|
|
b4bc2f |
File email-ca-bundle.pem contains CA certificates
|
|
|
b4bc2f |
trusted for E-Mail protection.
|
|
|
b4bc2f |
File objsign-ca-bundle.pem contains CA certificates
|
|
|
b4bc2f |
trusted for code signing.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
|
|
|
b4bc2f |
COMMANDS
|
|
|
b4bc2f |
--------
|
|
|
b4bc2f |
(absent/empty command)::
|
|
|
b4bc2f |
Same as the *extract* command described below. (However, the command may
|
|
|
b4bc2f |
print fewer warnings, as this command is being run during rpm package
|
|
|
b4bc2f |
installation, where non-fatal status output is undesired.)
|
|
|
b4bc2f |
|
|
|
b4bc2f |
*extract*::
|
|
|
b4bc2f |
Instruct update-ca-trust to scan the <<sourceconf,SOURCE CONFIGURATION>> and produce
|
|
|
b4bc2f |
updated versions of the consolidated configuration files stored below
|
|
|
b4bc2f |
the /etc/pki/ca-trust/extracted directory hierarchy.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
FILES
|
|
|
b4bc2f |
-----
|
|
|
b4bc2f |
/etc/pki/tls/certs/ca-bundle.crt::
|
|
|
b4bc2f |
Classic filename, file contains a list of CA certificates trusted for TLS server authentication usage, in the simple BEGIN/END CERTIFICATE file format, without distrust information.
|
|
|
b4bc2f |
This file is a symbolic link that refers to the consolidated output created by the update-ca-trust command.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
/etc/pki/tls/certs/ca-bundle.trust.crt::
|
|
|
b4bc2f |
Classic filename, file contains a list of CA certificates in the extended BEGIN/END TRUSTED CERTIFICATE file format, which includes trust (and/or distrust) flags specific to certificate usage.
|
|
|
b4bc2f |
This file is a symbolic link that refers to the consolidated output created by the update-ca-trust command.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
/etc/pki/java/cacerts::
|
|
|
b4bc2f |
Classic filename, file contains a list of CA certificates trusted for TLS server authentication usage, in the Java keystore file format, without distrust information.
|
|
|
b4bc2f |
This file is a symbolic link that refers to the consolidated output created by the update-ca-trust command.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
/usr/share/pki/ca-trust-source::
|
|
|
b4bc2f |
Contains multiple, low priority source configuration files as explained in section <<sourceconf,SOURCE CONFIGURATION>>. Please pay attention to the specific meanings of the respective subdirectories.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
/etc/pki/ca-trust/source::
|
|
|
b4bc2f |
Contains multiple, high priority source configuration files as explained in section <<sourceconf,SOURCE CONFIGURATION>>. Please pay attention to the specific meanings of the respective subdirectories.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
/etc/pki/ca-trust/extracted::
|
|
|
b4bc2f |
Contains consolidated and automatically generated configuration files for consumption by applications,
|
|
|
b4bc2f |
which are created using the 'update-ca-trust extract' command. Don't edit files in this directory, because they will be overwritten.
|
|
|
b4bc2f |
See section <<extractconf,EXTRACTED CONFIGURATION>> for additional details.
|
|
|
b4bc2f |
|
|
|
b4bc2f |
AUTHOR
|
|
|
b4bc2f |
------
|
|
|
b4bc2f |
Written by Kai Engert and Stef Walter.
|