# 私有 PKI

私有 PKI（private public key infrastructure，私有公钥基础设施）是由某个组织自行运营、或受其委托运营的证书颁发机构体系，用来为本组织内部的用户、设备和服务签发并管理 X.509 证书，而非面向公共互联网。公共 CA 为可公开访问的网站核验身份，内部 CA 则不同：它让组织对自己私有网络内整个证书生命周期拥有控制权、灵活性和自动化能力。<sup>[1](https://www.entrust.com/sites/default/files/documentation/reports/entrust-ponemon-report-2026-re.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 用途 | 在公共 CA 不必要或不适用之处，为内部身份验证、加密和签名签发证书，如 VPN、Wi-Fi、智能卡登录和服务间 TLS<sup>[2](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/active-directory-certificate-services-overview)</sup> |
| 信任模型 | 组织把自家的根证书分发给由自己控制的客户端；并不存在可与公共 CA/Browser 论坛体系相比的外部审计制度<sup>[1](https://www.entrust.com/sites/default/files/documentation/reports/entrust-ponemon-report-2026-re.pdf)</sup> |
| 常用平台 | Microsoft Active Directory 证书服务（AD CS）、HashiCorp Vault 的 PKI 密钥引擎，以及开源的 step-ca 在线 CA<sup>[2](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/active-directory-certificate-services-overview)</sup><sup> • </sup><sup>[3](https://docs.hashicorp.com/vault/docs/secrets/pki)</sup><sup> • </sup><sup>[4](https://smallstep.com/docs/certificate-manager/how-it-works/)</sup> |
| 部署构成 | 在 2025 年一项金融服务行业调查中，42% 的受访者使用内部私有 PKI，44% 使用服务提供商或云服务商托管的私有 PKI<sup>[5](https://ponemonsullivanreport.com/2025/01/certificate-lifecyle-management-pki-and-software-supply-chain-security-in-financial-services/)</sup> |
| 证书有效期 | 私有 CA 自行设定有效期；CA/Browser 论坛分阶段缩短公共 TLS 证书有效期，到 2029 年降至 47 天，这一要求对它们并无约束力<sup>[6](https://www.cloudnetworks.co.kr/en/pr_en/blog/?mod=document&uid=482)</sup> |
| 主要运营风险 | 证书故障，多因证书过期、被吊销或配置错误而起；62% 的受访金融服务机构报告至少发生过一次与证书相关的故障或事件<sup>[5](https://ponemonsullivanreport.com/2025/01/certificate-lifecyle-management-pki-and-software-supply-chain-security-in-financial-services/)</sup> |

## 组织为何自建 PKI

私有 CA 签发的证书采用与公共证书相同的 X.509 格式和信任链模型：根信任锚签发中间 CA 或颁发 CA，后者再签发终端实体证书，依赖方沿着路径一路验证回自己所信任的根。<sup>[7](https://www.rfc-editor.org/rfc/rfc5280.html)</sup> 区别在于治理。私有 PKI 让组织自行决定谁可以注册、证书可以携带哪些名称和密钥用法、证书有效期多长、吊销如何运作，全程无需外部方介入。

典型用途包括：用户和设备向企业网络进行身份验证、智能卡登录、文件系统加密、虚拟专用网、IPsec、安全无线网络、S/MIME 电子邮件，以及内部服务之间的 TLS。<sup>[2](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/active-directory-certificate-services-overview)</sup> 另一个原因是公共 CA 无法或不应认证的内部名称和 IP 地址：纯内部主机名的证书可以在内部签发，既省去费用，也避免了走公共签发渠道会带来的内部网络信息泄露。

## 常见实现

**Microsoft AD CS。** Active Directory 证书服务是一个用于签发和管理 PKI 证书的 [Windows Server](https://www.edgepedia.org/zh/windows-server) 角色。它的证书颁发机构角色服务把一台 Windows 服务器变成 CA；企业 CA 使用存储在 Active Directory 域服务中的信息（包括用户账户和安全组）来批准或拒绝请求，而当 AD DS 不可用或部署的是非微软的目录服务时，则使用独立 CA。<sup>[8](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/certification-authority-role)</sup> AD CS 通过组策略把注册和自动注册集成进来，这正是它在以 Windows 为中心的企业中始终占据私有 PKI 主导地位的原因。

**HashiCorp Vault。** Vault 的 PKI 密钥引擎按需动态生成 X.509 证书：服务先向 Vault 完成身份验证，再请求证书，随后即获得一个密钥对和一张证书，全过程没有手工的 CSR 与审批流程。通过把证书 TTL 保持得相对较短，吊销便不太会发生，CRL 也能保持简短，而且每个应用实例都可以持有一张唯一的证书，启动时获取、关闭时丢弃，从不写入磁盘。<sup>[3](https://docs.hashicorp.com/vault/docs/secrets/pki)</sup> Vault 支持在同一个挂载点上配置多个签发者（自 1.11.0 版起），也支持用角色来限制每个已认证调用方可以请求什么。<sup>[9](https://docs.hashicorp.com/vault/docs/secrets/pki/rotation-primitives)</sup><sup> • </sup><sup>[10](https://developer.hashicorp.com/vault/docs/secrets/pki/considerations)</sup>

**step-ca 与 Smallstep。** step-ca 是一个为自动化证书管理而构建的开源私有在线证书颁发机构；Smallstep 的 Certificate Manager 在其之上构建，并增加了事件、告警等生命周期管理功能。<sup>[4](https://smallstep.com/docs/certificate-manager/how-it-works/)</sup> 它通过 API 和命令行工作流签发证书，并支持用证书模板控制所签发证书的内容。<sup>[11](https://smallstep.com/docs/step-ca/templates/)</sup>

## 设计与层级

私有 PKI 通常以层级结构而非单个 CA 的形式部署。离线根 CA 持有信任锚，并签发一个或多个负责日常签发的颁发（中间）CA。让根保持离线可限制其私钥的暴露风险；在 Vault 中，推荐的做法是让 Vault 生成中间 CA 的 CSR 而不导出私钥，再由一个独立的根（可能是另一个 Vault 挂载点）来签名。<sup>[10](https://developer.hashicorp.com/vault/docs/secrets/pki/considerations)</sup> NIST 的密钥管理指南 SP 800-57 第 2 部分论述了这一问题的组织层面：针对运行 PKI 的各实体，涵盖密钥管理策略、CA 运行、备份和失陷处置流程。<sup>[12](https://csrc.nist.gov/pubs/sp/800/57/pt2/r1/final)</sup>

硬件安全模块（HSM）可以保护 CA 私钥；微软的文档指出，使用 HSM 能增强 CA 及其 PKI 的安全性。<sup>[8](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/certification-authority-role)</sup> 管理权限的委派是刻意设计的：微软的安全加固指南建议采用按角色划分的组，例如 PKI-CA-Admins、PKI-Cert-Managers、PKI-Enrollment-Agents、PKI-Auditors 和 PKI-CA-Backup，而不是宽泛的默认管理员权限。<sup>[13](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/secure-delegate-audit-certification-authority)</sup>

## 证书模板与签发策略

在 AD CS 中，证书模板是一组可反复使用的规则集合，它规定哪些用户可以请求注册，并决定 CA 如何配置它签发的每一张证书。只有企业 CA 才基于模板签发证书；模板存储在 AD DS 中，由林内所有 CA 共享，而独立 CA 不使用模板。<sup>[14](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/manage-certificate-templates)</sup> 模板的设置涵盖与旧版 CA 及接收方操作系统的兼容性、有效期与续期周期、主体名称的构造方式、密码学参数（加密提供程序、算法、密钥长度）、应用程序策略和密钥用法等证书扩展，以及向各组授予读取、注册和自动注册权限的安全权限设置。<sup>[14](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/manage-certificate-templates)</sup>

私有 PKI 的错误最集中地出现在模板安全上。微软的安全加固指南建议，对用于身份验证、代码签名、注册代理、由请求方提供主体信息、或私钥可导出的模板要额外审查，并建议对由请求方提供主体的模板强制要求管理员批准。<sup>[14](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/manage-certificate-templates)</sup><sup> • </sup><sup>[15](https://techcommunity.microsoft.com/blog/coreinfrastructureandsecurityblog/secure-configuration-and-hardening-of-active-directory-certificate-services/4463240)</sup> 域管理员和企业管理员默认对每个模板都拥有权限，因为模板所在的 AD 容器上他们本就持有权限；加固指南把这一默认设置视为需要收紧的起点，而非已完成的配置。<sup>[15](https://techcommunity.microsoft.com/blog/coreinfrastructureandsecurityblog/secure-configuration-and-hardening-of-active-directory-certificate-services/4463240)</sup>

加入 Windows 域的客户端还会因身份验证方式的变化而与模板产生交互：自 2022 年 5 月 10 日的 Windows 更新起，企业 CA 会为基于在线模板签发的证书添加一个非关键的安全标识符扩展（OID 1.3.6.1.4.1.311.25.2），从而加强对域控制器的基于证书的身份验证；非微软的 CA 部署得不到这层保护。<sup>[16](https://support.microsoft.com/en-us/servicing/os/windows-server/2022/05/kb5014754-certificate-based-authentication-changes-on-windows-domain-controllers)</sup>

## 生命周期与自动化

私有 PKI 的运维负担主要落在生命周期上：签发、续期、盘点与吊销。故障数据说明了自动化为何重要。在 2025 年一项金融服务行业调查中，62% 的受访者报告曾发生一次或多次由数字证书问题导致的故障或安全事件，主要是证书过期、被吊销或配置错误。<sup>[5](https://ponemonsullivanreport.com/2025/01/certificate-lifecyle-management-pki-and-software-supply-chain-security-in-financial-services/)</sup> 一项范围更广的行业调查发现，81% 的受访者报告，在过去 24 个月内发生过两次或以上的证书相关故障，专用证书生命周期管理（CLM）工具的采用率从 2021 年的 36% 上升到 44%。<sup>[17](https://www.securitymagazine.com/articles/98189-getting-ahead-of-certificate-related-outages-with-automation-and-visibility)</sup>

自动化因平台而异。Vault 按需签发短生命周期证书，从而使吊销和轮换基本被省去。<sup>[3](https://docs.hashicorp.com/vault/docs/secrets/pki)</sup> 在服务需要自动续期证书的场景中，基于 ACME 的签发与轮换很常见。<sup>[9](https://docs.hashicorp.com/vault/docs/secrets/pki/rotation-primitives)</sup> 在 AD CS 中，自动注册会为已注册的主体续期证书，无需手工请求。根轮换在多数设计中仍是手工的分阶段流程：先分发并信任新根，系统迁移过去，待旧根下签发的所有证书全部过期后，才移除旧根。<sup>[9](https://docs.hashicorp.com/vault/docs/secrets/pki/rotation-primitives)</sup>

## 安全考量

由于私有 CA 的根是由组织自己分发给客户端的，CA 私钥一旦失陷，其签发过的每一张证书都随之失陷。因此密钥管理指南把 CA 密钥保护、审计日志和受控委派视为核心控制措施。<sup>[12](https://csrc.nist.gov/pubs/sp/800/57/pt2/r1/final)</sup><sup> • </sup><sup>[13](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/secure-delegate-audit-certification-authority)</sup> 针对 AD CS 有文档记载的实用措施包括：为每个模板设置范围很窄的注册组、对请求方提供主体名称的情况要求管理员批准，以及对 CA 操作进行审计。<sup>[13](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/secure-delegate-audit-certification-authority)</sup><sup> • </sup><sup>[15](https://techcommunity.microsoft.com/blog/coreinfrastructureandsecurityblog/secure-configuration-and-hardening-of-active-directory-certificate-services/4463240)</sup>

密码敏捷性正成为一项新需求。Windows Server 的 AD CS 现已支持后量子 ML-DSA 证书模板和 CA，通过 ML-DSA 密钥存储提供程序进行配置；微软的指南把此类仅涉及签名的设置视为专门化的用法，而非通用的模板基线。<sup>[18](https://github.com/MicrosoftDocs/windowsserverdocs/blob/main/WindowsServerDocs/identity/ad-cs/configure-ml-dsa-certification-authority.md)</sup><sup> • </sup><sup>[14](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/manage-certificate-templates)</sup>

## 私有 PKI 与公共 Web PKI 的区别

CA/Browser 论坛分阶段缩短公共 TLS 证书有效期，到 2029 年降至 47 天，且[域名验证](https://www.edgepedia.org/zh/domain-validation)信息只能重复使用 10 天，这一要求只适用于受公共信任的证书；私有 CA 可以继续签发有效期更长、由自家客户端接受的证书。<sup>[6](https://www.cloudnetworks.co.kr/en/pr_en/blog/?mod=document&uid=482)</sup> 私有 PKI 还处在证书透明度（Certificate Transparency）体系之外——那套记录公开发行证书的公共日志生态，这也正是组织让内部名称远离公共 CA 的原因之一。代价是问责性：公共 CA 在外部审计和浏览器根计划的约束下运营，而私有 CA 的规则有多强，取决于组织自身的政策与执行力度。<sup>[1](https://www.entrust.com/sites/default/files/documentation/reports/entrust-ponemon-report-2026-re.pdf)</sup>

## References

1. [Trends in the deployment of PKI and HSMs, Entrust/Ponemon report](https://www.entrust.com/sites/default/files/documentation/reports/entrust-ponemon-report-2026-re.pdf)
2. [What is Active Directory Certificate Services in Windows Server? Microsoft Learn](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/active-directory-certificate-services-overview)
3. [PKI secrets engine, HashiCorp Vault documentation](https://docs.hashicorp.com/vault/docs/secrets/pki)
4. [Certificate Manager Architecture Guide, Smallstep](https://smallstep.com/docs/certificate-manager/how-it-works/)
5. [Certificate Lifecycle Management, PKI and Software Supply Chain Security in Financial Services, Ponemon-Sullivan Privacy Report](https://ponemonsullivanreport.com/2025/01/certificate-lifecyle-management-pki-and-software-supply-chain-security-in-financial-services/)
6. [Certificate Outage Costs and the ROI of Certificate Management: DigiCert 2026 Outlook Survey and Forrester TEI Analysis](https://www.cloudnetworks.co.kr/en/pr_en/blog/?mod=document&uid=482)
7. [RFC 5280: Internet X.509 PKI Certificate and CRL Profile](https://www.rfc-editor.org/rfc/rfc5280.html)
8. [What is the Certification Authority Role Service in Windows Server? Microsoft Learn](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/certification-authority-role)
9. [PKI secrets engine - rotation primitives, HashiCorp Vault documentation](https://docs.hashicorp.com/vault/docs/secrets/pki/rotation-primitives)
10. [PKI secrets engine considerations, HashiCorp Vault documentation](https://developer.hashicorp.com/vault/docs/secrets/pki/considerations)
11. [Certificate Template Reference for step-ca, Smallstep](https://smallstep.com/docs/step-ca/templates/)
12. [NIST SP 800-57 Part 2 Rev. 1: Best Practices for Key Management Organizations](https://csrc.nist.gov/pubs/sp/800/57/pt2/r1/final)
13. [Secure, Delegate, Audit AD CS Administration, Microsoft Learn](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/secure-delegate-audit-certification-authority)
14. [Manage AD CS certificate templates on an enterprise CA, Microsoft Learn](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/manage-certificate-templates)
15. [Secure Configuration and Hardening of Active Directory Certificate Services, Microsoft Community Hub](https://techcommunity.microsoft.com/blog/coreinfrastructureandsecurityblog/secure-configuration-and-hardening-of-active-directory-certificate-services/4463240)
16. [KB5014754: Certificate-based authentication changes on Windows domain controllers, Microsoft Support](https://support.microsoft.com/en-us/servicing/os/windows-server/2022/05/kb5014754-certificate-based-authentication-changes-on-windows-domain-controllers)
17. [Getting ahead of certificate-related outages with automation and visibility, Security Magazine](https://www.securitymagazine.com/articles/98189-getting-ahead-of-certificate-related-outages-with-automation-and-visibility)
18. [Configure ML-DSA certification authority, MicrosoftDocs/windowsserverdocs on GitHub](https://github.com/MicrosoftDocs/windowsserverdocs/blob/main/WindowsServerDocs/identity/ad-cs/configure-ml-dsa-certification-authority.md)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Security governance and internet policy › Cryptographic protocols › Key management

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/private-pki

English original: https://www.edgepedia.org/private-pki
