快速入门

下载 PKI Trust Manager、签发第一张证书并自动续期,约需十分钟。

本快速入门将指导您使用免费的 Community Edition(最多支持 500 张证书),约十分钟内通过 PKI Trust Manager 签发证书。

1. 获取 PKI Trust Manager#

2. 创建 ACME 应用#

  1. 打开 Web Admin UI,进入 Integrations → New。
  2. 将 Type 设置为 ACME。
  3. 将 Domain 设置为客户端使用的 ACME 主机名(必须与 Host 标头一致,不包含端口)。
  4. 选择已关联到 CA 的 Certificate template。
  5. 将 Require domain validation 设为 Off 以自动通过挑战,或设为 On 使用 http-01 / dns-01。

3. 创建 ACME (EAB) 用户#

  1. 进入 Users → Create,选择类型 ACME。
  2. 界面会生成两个值,请保存:
    • Key ID (KID)
    • HMAC key
  3. 这些是客户端 EAB 凭据(--eab-kid / --eab-hmac-key)。

4. 使用 acme.sh 签发证书#

# install (one time)
curl https://get.acme.sh | sh
 
# issue against your ACME directory
~/.acme.sh/acme.sh --issue \
  --server https://acme.example.com/acme/directory \
  -d acme.example.com \
  --eab-kid YOUR_KID \
  --eab-hmac-key 'YOUR_HMAC_KEY' \
  --webroot /tmp/acme-webroot \
  --keylength 2048 \
  --force

证书将保存在 ~/.acme.sh/acme.example.com/,并自动续期。

5. 验证#

openssl x509 -in <cert-file> -noout -subject -issuer -dates -ext subjectAltName

在 Web Admin UI 的 Certificates 中可看到该注册项,状态为 Issued。

后续步骤