10.3. 配置 ACME 颁发者


本节描述了如何为 PKI ACME Responder 配置签发者。ACME Issuer 的配置位于 /etc/pki/pki-tomcat/acme/issuer.conf

您可以使用 pki-server acme-issuer-mod 命令通过命令行配置签发者。

  • 在没有参数的情况下调用此命令会启动一个互动模式,例如:

    $ pki-server acme-issuer-mod
    The current value is displayed in the square brackets.
    To keep the current value, simply press Enter.
    To change the current value, enter the new value.
    To remove the current value, enter a blank space.
    
    Enter the type of the certificate issuer. Available types: nss, pki.
    Issuer Type: pki
    
    Enter the location of the PKI server (e.g. https://localhost.localdomain:8443).
    Server URL [https://localhost.localdomain:8443]:
    
    Enter the certificate nickname for client authentication.
    This might be the CA agent certificate.
    Enter blank to use basic authentication.
    Client Certificate:
    
    Enter the username of the CA agent for basic authentication.
    Enter blank if a CA agent certificate is used for client authentication.
    Agent Username [caadmin]:
    
    Enter the CA agent password for basic authentication.
    Enter blank if the password is already stored in a separate property file
    or if a CA agent certificate is used for client authentication.
    Agent Password [ ****** ]:
    
    Enter the certificate profile for issuing ACME certificates (e.g. acmeServerCert).
    Certificate Profile [acmeServerCert]:
    Copy to clipboard
  • 使用-- type 参数调用 命令会根据指定的类型创建新的配置。
  • 使用其他参数调用 命令会更新指定的参数。

10.3.1. 配置 PKI Issuer

您可以配置 PKI ACME Responder,以使用 PKI Issuer 发布证书。示例配置位于 /usr/share/pki/acme/issuer/pki/issuer.conf

  • 要配置 PKI 签发者,请将此示例 issuer.conf 复制到 /etc/pki/pki-tomcat/acme 目录中,或者执行以下命令来自定义一些参数:

    $ pki-server acme-issuer-mod --type pki \
                -Dusername=caadmin \
                -Dpassword=Secret.123
    Copy to clipboard

    根据需要自定义配置。issuer.conf 文件应类似如下:

    class=org.example.acme.issuer.PKIIssuer
    url=https://localhost.localdomain:8443
    profile=acmeServerCert
    username=caadmin
    password=Secret.123
    Copy to clipboard
  • url 参数指定 PKI 签发者位置。
  • profile 参数指定要使用的证书配置文件。
  • 要使用客户端证书身份验证,请在 nickname 参数中指定客户端证书 别名
  • 要使用基本身份验证,请在 username 参数中指定用户名,并在 password 参数中指定密码。
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat, Inc.