# 公钥证书

公钥证书是一种数据结构，用作实体的唯一标识，携带该实体的公钥及任何附加信息，并带有可信方的数字签名，从而将公钥与证书中指定的实体绑定在一起。<sup>[1](https://csrc.nist.gov/glossary/term/certificate)</sup> 证书使依赖方无需事先与该方会面，即可验证某公钥属于某个具名个人、组织或服务；附加字段可以规定密钥的使用方式以及证书的有效期。<sup>[1](https://csrc.nist.gov/glossary/term/certificate)</sup> 它们是公钥基础设施（PKI）的核心凭证格式，PKI 是规模化创建、管理和分发公钥所需的硬件、软件、策略和程序的集合。

| 关键事实 | 详情 |
|---|---|
| 定义 | 标识实体、携带实体公钥、由可信方数字签名的数据，将密钥与实体绑定<sup>[1](https://csrc.nist.gov/glossary/term/certificate)</sup> |
| 最低内容 | 标识签发该证书的证书颁发机构、命名订阅者、包含订阅者公钥、标识运行期、由签发 CA 签名<sup>[1](https://csrc.nist.gov/glossary/term/certificate)</sup> |
| 主流格式 | X.509，20 世纪 80 年代末在 ISO/ITU 下制定；IETF 的互联网使用规范为 RFC 5280<sup>[2](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)</sup><sup> • </sup><sup>[1](https://csrc.nist.gov/glossary/term/certificate)</sup> |
| 签发规模 | 在 TLS 生态系统中，估计每天签发 200 万至 300 万张证书<sup>[3](https://doi.org/10.1145/3785653)</sup> |
| Web PKI 有效期限制 | 公共 TLS 证书最长有效期：2026 年 3 月前为 398 天，2026 年 3 月 15 日起为 200 天，2027 年 3 月 15 日起为 100 天，2029 年 3 月 15 日起为 47 天<sup>[4](https://cabforum.org/working-groups/server/baseline-requirements/requirements/)</sup><sup> • </sup><sup>[5](https://www.techradar.com/pro/why-october-1-2026-could-be-the-day-ssl-tls-certificates-break-the-internet)</sup> |
| 信任模型 | 层级式证书颁发机构（X.509）对比 OpenPGP 的去中心化信任网<sup>[6](https://openpgp.dev/book/certificates.html)</sup> |
| 透明度 | 证书透明度日志，即已签发证书的仅追加账本，降低了对证书颁发机构的信任要求<sup>[7](https://arxiv.org/abs/2203.01661)</sup> |

## 内容与功能

证书回答一个问题：这个公钥真的属于这个具名方吗？NIST 术语表列出的证书最低内容包括五项：标识签发它的证书颁发机构、命名或标识其订阅者、包含订阅者的公钥、标识其运行期，以及由签发它的证书颁发机构进行数字签名。<sup>[1](https://csrc.nist.gov/glossary/term/certificate)</sup> 签名是使绑定可验证的机制，因为任何持有 CA 公钥的人都可以检查该签名是否由 CA 的私钥生成。由 CA 私钥签发和签名的证书还表明，证书中标识的订阅者独自控制相应的私钥，并独享其访问权。<sup>[1](https://csrc.nist.gov/glossary/term/certificate)</sup>

证书并非独立运作。大规模公钥密码学要求用户拥有处理公钥的安全基础设施，而证书策略中规定的要求体现在认证业务声明（CPS）中，后者描述 CA 和其他 PKI 要素如何运作以及具备哪些能力。<sup>[8](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=151247)</sup>

## 格式与标准

**X.509。** 公钥证书格式的 X.509 标准于 20 世纪 80 年代末在[国际标准化组织](https://www.edgepedia.org/zh/international-organization-for-standardization)（ISO）和[国际电信联盟](https://www.edgepedia.org/zh/international-telecommunication-union)（ITU）下制定，最初用于将公钥绑定到 X.500 目录名称。<sup>[2](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)</sup><sup> • </sup><sup>[9](https://www.rfc-editor.org/rfc/rfc2693.html)</sup> 随着 PKI 标准工作从 ISO/ITU 转移到[互联网工程任务组](https://www.edgepedia.org/zh/internet-engineering-task-force)（IETF）和 IEEE，IETF 制定了 RFC 5280，即当前 NIST 实践指南中证书所依据的规范。<sup>[2](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)</sup><sup> • </sup><sup>[1](https://csrc.nist.gov/glossary/term/certificate)</sup> X.509 采用层级模型，根 CA 位于委托链的顶端，对任何已签发证书的信任最终源自被接受的根证书颁发机构。<sup>[10](https://arxiv.org/abs/2407.02287)</sup>

**OpenPGP 证书。** OpenPGP 定义了一种不同的证书结构，由数据包构成：组件密钥、身份组件（如用户 ID，通常为姓名和电子邮件地址）以及连接它们的签名包。<sup>[6](https://openpgp.dev/book/certificates.html)</sup> OpenPGP 不依赖严格的层级式 PKI，而是依赖信任网，这是一种去中心化信任模型，其中第三方认证——用户确认特定身份拥有特定证书的声明——形成一个网络，软件通过该网络评估每个身份绑定的可靠性。<sup>[6](https://openpgp.dev/book/certificates.html)</sup> 这与 X.509 形成对比，在 X.509 中信任始终来自指定的机构。<sup>[11](https://www.net.in.tum.de/fileadmin/TUM/teaching/netzsicherheit/ws1011/assignments/Blatt4-samplesolution-english.pdf)</sup>

## 签发与 Web PKI

在保护网络流量的生态系统中，证书由属于有效信任链的证书颁发机构签发，任何此类 CA 都可以为任何服务签发可信证书。<sup>[10](https://arxiv.org/abs/2407.02287)</sup> CA/浏览器论坛是证书签发者与浏览器软件及其他使用证书的应用程序供应商的自愿性组织，维护着基线要求，作为参与根计划的可互操作基本门槛。<sup>[12](https://cabforum.org/working-groups/server/baseline-requirements/)</sup>

**缩短的生命周期。** 近年来最显著的运营变化是证书有效期的计划性缩短。在 2026 年 3 月 15 日之前，公共 TLS 证书的最长有效期为 398 天；CA/浏览器论坛的时间表随后将上限降至 2026 年 3 月 15 日的 200 天、2027 年 3 月 15 日的 100 天和 2029 年 3 月 15 日的 47 天。<sup>[4](https://cabforum.org/working-groups/server/baseline-requirements/requirements/)</sup><sup> • </sup><sup>[5](https://www.techradar.com/pro/why-october-1-2026-could-be-the-day-ssl-tls-certificates-break-the-internet)</sup> 同一时间表还将域名验证的最大数据复用期从 398 天缩短至 200 天（2026 年）、100 天（2027 年）和 10 天（2029 年），因此 CA 必须更频繁地重新验证域名控制权，同时签发更短期的证书。<sup>[4](https://cabforum.org/working-groups/server/baseline-requirements/requirements/)</sup>

## 撤销与透明度

证书可能需要在到期前停止工作，例如当其私钥被泄露时。大规模撤销证书仍然是一项挑战：一项针对 TLS 生态系统中撤销机制的调查发现，实际成本——运行服务器、管理 OCSP 信息以及定期刷新缓存响应——使服务器运营者不愿部署 OCSP 装订。<sup>[3](https://doi.org/10.1145/3785653)</sup> 研究还发现，由于未遵守 RFC 文档和 CA/浏览器论坛政策，验证过程并不总能抵御网络钓鱼攻击等威胁。<sup>[3](https://doi.org/10.1145/3785653)</sup>

**证书透明度。** 错误签发，即 CA 签发了本不应签发的证书，对 TLS 生态系统有实际后果，错误签发证书的事件促使 Google 实施并强制执行证书透明度（CT）。<sup>[3](https://doi.org/10.1145/3785653)</sup><sup> • </sup><sup>[13](https://arxiv.org/abs/2001.04319)</sup> CT 使用仅追加的公共日志，使网站所有者能够实时检查其域名的证书是否非法；2011 年 DigiNotar 遭黑客攻击事件——500 张假证书被用于监视网络用户——是 CT 所应对风险的一个常被引用的例子。<sup>[14](https://www.techradar.com/pro/security/we-can-accelerate-the-adoption-of-post-quantum-resilience-for-all-web-users-google-reveals-how-chrome-will-help-secure-https-certificates-against-quantum-computer-attacks-without-breaking-the-internet)</sup> 存在互补的基于 DNS 的机制：证书颁发机构授权（CAA）记录让域名所有者限制哪些 CA 可以为其签发证书，DANE/TLSA 记录在 DNSSEC 下将证书绑定到 DNS 名称，尽管对 400 万个热门域名的测量表明，CAA 几乎完全在没有 DNSSEC 的情况下部署，而且许多域名持有的证书超出了 CAA 语义范围。<sup>[10](https://arxiv.org/abs/2407.02287)</sup>

## 政府与企业使用

证书还锚定组织身份系统。在美国联邦政府中，基于 PKI 的派生 PIV 凭证是根据联邦公钥基础设施（FPKI）签发的 X.509 公钥证书，用于建立凭证与 PIV 身份账户之间的绑定，从而在向移动设备签发凭证时可以复用持卡人的身份验证。<sup>[15](https://pages.nist.gov/800-157r1/sp800-157.html)</sup> 此类证书根据定义的证书策略签发，例如满足特定认证保证级别的策略，其到期日期遵循签发者的证书策略，而非底层卡片的生命周期。<sup>[15](https://pages.nist.gov/800-157r1/sp800-157.html)</sup>

## 后量子展望

[量子计算](https://www.edgepedia.org/zh/quantum-computing)危及证书所依赖的签名算法：可运行的 Shor 算法可能产生伪造的数字签名并攻破记录在证书日志中的密钥，使攻击者能够欺骗浏览器或操作系统信任从未实际签发的证书。<sup>[14](https://www.techradar.com/pro/security/we-can-accelerate-the-adoption-of-post-quantum-resilience-for-all-web-users-google-reveals-how-chrome-will-help-secure-https-certificates-against-quantum-computer-attacks-without-breaking-the-internet)</sup> 这一过渡受到尺寸的制约。就尺寸而言，ML-DSA-44 产生 2,420 字节的签名，公钥为 1,312 字节，而 ECDSA P-256 仅需 64 字节；一旦将证书链上的签名以及浏览器强制要求的两个证书透明度时间戳计算在内，未经优化地替换会使每个新连接膨胀约 7 KB 至 10 KB。<sup>[16](https://www.techradar.com/pro/the-fixes-are-architectural-not-bigger-pipes-openssl-president-on-what-businesses-can-expect-and-how-to-prepare-for-a-post-quantum-internet)</sup> Chrome 计划中的抗量子根存储将仅支持默克尔树证书（MTC）格式的抗量子证书，而非将后量子签名硬塞入传统 X.509，MTC 的标准化工作正在 IETF 进行，Google、Apple、Cloudflare 和 Geomys 参与其中。<sup>[17](https://www.techradar.com/pro/googles-pqc-roadmap-puts-traditional-digital-certificates-under-pressure)</sup>

## References

1. [Certificate, NIST CSRC Glossary](https://csrc.nist.gov/glossary/term/certificate)
2. [Cryptography, NIST CSRC Cyber History](https://csrc.nist.gov/nist-cyber-history/cryptography/chapter)
3. [Certificate Revocation in the TLS Ecosystem: A Survey, ACM Computing Surveys](https://doi.org/10.1145/3785653)
4. [Latest Baseline Requirements, CA/Browser Forum](https://cabforum.org/working-groups/server/baseline-requirements/requirements/)
5. [Why October 1, 2026, could be the day SSL/TLS certificates 'break the Internet', TechRadar](https://www.techradar.com/pro/why-october-1-2026-could-be-the-day-ssl-tls-certificates-break-the-internet)
6. [Certificates, OpenPGP for application developers](https://openpgp.dev/book/certificates.html)
7. [SoK: SCT Auditing in Certificate Transparency, arXiv](https://arxiv.org/abs/2203.01661)
8. [Introduction to Public Key Technology and the Federal PKI Infrastructure, NIST SP](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=151247)
9. [RFC 2693: SPKI Certificate Theory, RFC Editor](https://www.rfc-editor.org/rfc/rfc2693.html)
10. [Do CAA, CT, and DANE Interlink in Certificate Deployments? A Web PKI Measurement Study, arXiv](https://arxiv.org/abs/2407.02287)
11. [Network Security exercise sample solution, Technische Universität München](https://www.net.in.tum.de/fileadmin/TUM/teaching/netzsicherheit/ws1011/assignments/Blatt4-samplesolution-english.pdf)
12. [Baseline Requirements, CA/Browser Forum](https://cabforum.org/working-groups/server/baseline-requirements/)
13. [Characterizing the Root Landscape of Certificate Transparency Logs, arXiv](https://arxiv.org/abs/2001.04319)
14. [Google reveals how Chrome will help secure HTTPS certificates against quantum computer attacks, TechRadar](https://www.techradar.com/pro/security/we-can-accelerate-the-adoption-of-post-quantum-resilience-for-all-web-users-google-reveals-how-chrome-will-help-secure-https-certificates-against-quantum-computer-attacks-without-breaking-the-internet)
15. [SP 800-157r1 Derived PIV Credentials, NIST](https://pages.nist.gov/800-157r1/sp800-157.html)
16. [OpenSSL President on preparing for a post-quantum internet, TechRadar](https://www.techradar.com/pro/the-fixes-are-architectural-not-bigger-pipes-openssl-president-on-what-businesses-can-expect-and-how-to-prepare-for-a-post-quantum-internet)
17. [Google's PQC roadmap puts traditional digital certificates under pressure, TechRadar](https://www.techradar.com/pro/googles-pqc-roadmap-puts-traditional-digital-certificates-under-pressure)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: 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/public-key-certificate

English original: https://www.edgepedia.org/public-key-certificate
