此内容没有您所选择的语言版本。

14.5. Changing the Trust Settings of a CA Certificate


Certificate System subsystems use the CA certificates in their certificate databases to validate certificates received during a TLS-enabled communication.
It can be necessary to change the trust settings on a CA stored in the certificate database, temporarily or permanently. For example, if there is a problem with access or compromised certificates, marking the CA certificate as untrusted prevents entities with certificates signed by that CA from authenticating to the Certificate System. When the problem is resolved, the CA can be marked as trusted again.
To untrust a CA permanently, consider removing its certificate from the trust database. For instructions, see Section 14.4.3, “Deleting Certificates from the Database”.

14.5.1. Changing Trust Settings through the Console

To change the trust setting of a CA certificate, do the following:
  1. Open the subsystem console.
    pkiconsole https://server.example.com:secure_port/subsystem_type
    Copy to Clipboard Toggle word wrap
  2. In the Configuration tab, System Keys and Certificates from the left navigation tree.
  3. Select the CA certificates tab.
  4. Select the CA certificate to modify, and click Edit.
  5. A prompt opens which reads The Certificate chain is (un)trusted, are you sure you want to (un)trust it?
    Clicking yes changes the trust setting of the certificate chain; pressing no preserves the original trust relationship.

14.5.2. Changing Trust Settings Using certutil

To change the trust setting of a certificate using certutil, do the following:
  1. Open the instance's certificate databases directory.
    cd /var/lib/pki/instance_name/alias
    
    Copy to Clipboard Toggle word wrap
  2. List the certificates in the database by running the certutil with the -L option. For example:
    certutil -L -d .
    
    Certificate Authority - Example Domain    CT,c,
    subsystemCert cert-instance_name          u,u,u
    Server-Cert cert-instance_name            u,u,u
    
    Copy to Clipboard Toggle word wrap
  3. Change the trust settings for the certificate by running the certutil with the -M option.
    certutil -M -n cert_nickname -t trust -d .
    Copy to Clipboard Toggle word wrap
    For example:
    certutil -M -n "Certificate Authority - Example Domain" -t TCu,TCu,TCu -d .
    Copy to Clipboard Toggle word wrap
  4. List the certificates again to confirm that the certificate trust was changed.
    certutil -L -d .
    
    Certificate Authority - Example Domain    CTu,CTu,CTu
    subsystemCert cert-instance_name          u,u,u
    Server-Cert cert-instance_name            u,u,u
    
    Copy to Clipboard Toggle word wrap
For information about using the certutil command, see http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat