# 安全套接层（Secure Sockets Layer，SSL）

**安全套接层**（Secure Sockets Layer，SSL）是[网景](https://www.edgepedia.org/zh/netscape)通信公司（Netscape Communications）开发的一系列密码学协议，用于在互联网上为客户端和服务器应用之间提供通信隐私，旨在防止窃听、篡改和消息伪造。SSL 1.0 从未向公众发布；SSL 2.0 及其后继 SSL 3.0 使电子商务网站得以创建，SSL 最终被标准化为[传输层安全](https://www.edgepedia.org/zh/transport-layer-security)（Transport Layer Security，TLS），这一协议至今仍在保护着 Web。<sup>[1](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Evolution_of_HTTP)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 在网景通信公司开发，作为 TCP/IP 之上的加密传输层；SSL 1.0 从未公开发布<sup>[1](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Evolution_of_HTTP)</sup> |
| SSL 3.0 | 最后发布的版本日期为 1996 年 11 月 18 日，作者为 A. 弗赖尔（A. Freier）、P. 卡尔顿（P. Karlton，网景）和 P. 科赫尔（P. Kocher）；2011 年 8 月作为历史类 RFC 6101 记录<sup>[2](https://datatracker.ietf.org/doc/html/rfc6101)</sup> |
| 后继者 | TLS 1.0（RFC 2246，1999 年 1 月）直接基于 SSL 3.0<sup>[3](https://datatracker.ietf.org/doc/html/rfc2246)</sup> |
| 安全属性 | 通过对称加密（DES、3DES、RC4）实现连接隐私，通过公钥密码学（RSA、DSS）实现对等方认证，并通过使用 SHA 和 MD5 等哈希函数的带密钥 MAC 实现完整性<sup>[2](https://datatracker.ietf.org/doc/html/rfc6101)</sup> |
| POODLE | 针对 SSL 3.0 CBC 模式密码的填充预言攻击，由谷歌（Google）研究人员博多·默勒（Bodo Möller）、泰·杜昂（Thai Duong）和克日什托夫·科托维奇（Krzysztof Kotowicz）于 2014 年 10 月 14 日发布；分配编号 CVE-2014-3566<sup>[4](https://security.googleblog.com/2014/10/this-poodle-bites-exploiting-ssl-30.html)</sup><sup> • </sup><sup>[5](https://atvirtual.eu/docs/ssl-poodle.pdf)</sup> |
| 弃用 | SSL 3.0 在 RFC 7568（2015 年 6 月）中被正式弃用；SSL 2.0 被 RFC 6176 禁止<sup>[6](https://www.rfc-editor.org/info/rfc7568)</sup><sup> • </sup><sup>[7](https://www.rfc-editor.org/rfc/rfc6176.html)</sup> |
| 合规截止日期 | PCI DSS 中淘汰 SSL 和早期 TLS 的迁移日期为 2018 年 6 月 30 日<sup>[8](https://blog.pcisecuritystandards.org/hubfs/Migrating_from_SSL_and_Early_TLS_-v12.pdf)</sup> |

## 协议设计

SSL 3.0 由两层组成。最低层是 SSL 记录协议，它位于 TCP 等可靠传输协议之上，并封装更高层协议。其中一个被封装的协议是 SSL 握手协议，它允许服务器和客户端在应用协议发送或接收第一个字节数据之前相互认证，并协商加密算法和加密密钥。<sup>[2](https://datatracker.ietf.org/doc/html/rfc6101)</sup>

该协议声明的目标按优先级依次为：密码学安全性、独立实现之间的互操作性、可扩展至新的公钥和批量加密方法，以及相对效率，并由可选的会话缓存方案支持，以减少完整连接的数量。<sup>[2](https://datatracker.ietf.org/doc/html/rfc6101)</sup> 连接是私密的：在初始握手定义密钥后，使用对称密码学进行数据加密；对等方身份可用非对称密码学认证；消息传输包含使用带密钥的消息认证码进行的完整性检查。<sup>[2](https://datatracker.ietf.org/doc/html/rfc6101)</sup>

尽管 SSL 3.0 被广泛实现并成为 TLS 的基础，但它在当时从未由互联网工程任务组（IETF）正式发布；RFC 6101 于 2011 年 8 月发布，作为 1996 年 11 月 18 日版本的历史记录。<sup>[2](https://datatracker.ietf.org/doc/html/rfc6101)</sup>

## 从 SSL 到 TLS

TLS 1.0 于 1999 年 1 月作为 RFC 2246 发布，其中指出 TLS 协议本身基于 SSL 3.0；在 SSL 3.0 之后，名称改为 TLS，版本 1.0、1.1 以及后来的 1.2 和 1.3 在 IETF RFC 中规定。<sup>[3](https://datatracker.ietf.org/doc/html/rfc2246)</sup><sup> • </sup><sup>[9](https://www.usenix.org/sites/default/files/sec15_full_proceedings_interior.pdf)</sup>

## POODLE 与 SSL 3.0 的终结

2014 年 9 月下旬，谷歌的一个团队发现了 SSL 3.0 中的一个严重设计漏洞，并于 2014 年 10 月 14 日以 **POODLE** 攻击（Padding Oracle On Downgraded Legacy Encryption，降级旧式加密的填充预言）之名发布，分配编号 CVE-2014-3566。<sup>[4](https://security.googleblog.com/2014/10/this-poodle-bites-exploiting-ssl-30.html)</sup><sup> • </sup><sup>[10](https://blog.mozilla.org/security/2014/10/14/the-poodle-attack-and-the-end-of-ssl-3-0/)</sup><sup> • </sup><sup>[5](https://atvirtual.eu/docs/ssl-poodle.pdf)</sup> 该缺陷源于 SSL 3.0 在 CBC 模式密码下处理分组密码模式填充的方式：中间人攻击者可以利用填充预言侧信道攻击解密密文，从而计算出安全连接的明文，通常是会话 cookie 或其他持有者令牌，例如 HTTP Authorization 头的内容。<sup>[11](https://seclists.org/cert/2014/166)</sup><sup> • </sup><sup>[12](https://security.berkeley.edu/news/poodle-ssl-30-vulnerability-cve-2014-3566)</sup><sup> • </sup><sup>[5](https://atvirtual.eu/docs/ssl-poodle.pdf)</sup>

该攻击的影响范围来自浏览器的回退行为。几乎所有浏览器都支持 SSL 3.0，并且为了绕过 HTTPS 服务器中的缺陷，它们会用更旧的协议版本（包括 SSL 3.0）重试失败的连接。由于网络攻击者可以造成连接失败，他们就能触发对 SSL 3.0 的使用，然后利用该缺陷，即使浏览器和服务器都支持更新版本的 TLS。<sup>[4](https://security.googleblog.com/2014/10/this-poodle-bites-exploiting-ssl-30.html)</sup><sup> • </sup><sup>[10](https://blog.mozilla.org/security/2014/10/14/the-poodle-attack-and-the-end-of-ssl-3-0/)</sup> 任何支持 SSLv3 的网站都容易受到攻击，即使它同时支持更新的 TLS 版本。<sup>[10](https://blog.mozilla.org/security/2014/10/14/the-poodle-attack-and-the-end-of-ssl-3-0/)</sup>

谷歌建议的应对措施是 TLS_FALLBACK_SCSV，这是一种信令机制，可防止攻击者诱导浏览器降级到 SSL 3.0，也可防止从 TLS 1.2 降级到 1.1 或 1.0。Chrome 和谷歌的服务器自 2014 年 2 月起就支持它，而 Chrome 在公告发布当天开始测试禁用 SSL 3.0 回退的更改。<sup>[4](https://security.googleblog.com/2014/10/this-poodle-bites-exploiting-ssl-30.html)</sup> 禁用 SSL 3.0 支持，或禁用 SSL 3.0 下的 CBC 模式密码，也是充分的缓解措施。<sup>[4](https://security.googleblog.com/2014/10/this-poodle-bites-exploiting-ssl-30.html)</sup>

实际暴露面有限，但绝对数量很大。在披露时，Firefox 仅在约 0.3% 的 HTTPS 连接中使用 SSLv3，这仍相当于每天数百万次事务。<sup>[10](https://blog.mozilla.org/security/2014/10/14/the-poodle-attack-and-the-end-of-ssl-3-0/)</sup> 包括 CloudFlare、Slack、DuckDuckGo、Fitbit 和 Twitter 在内的互联网公司在公告发布后一天内禁用了 SSL 3.0 支持。<sup>[13](https://www.theguardian.com/technology/2014/oct/15/poodle-web-security-ssl-v3)</sup> Mozilla 宣布了一项在 Firefox 中关闭 SSLv3 的计划，该计划与其他浏览器厂商共同制定。<sup>[10](https://blog.mozilla.org/security/2014/10/14/the-poodle-attack-and-the-end-of-ssl-3-0/)</sup> 一些 TLS 实现也容易受到 POODLE 攻击，而其底层设计缺陷——先认证后加密——与早先的 BEAST、Lucky13 和 Vaudenay 攻击相同。<sup>[11](https://seclists.org/cert/2014/166)</sup><sup> • </sup><sup>[14](https://www.imperialviolet.org/2014/10/14/poodle.html)</sup>

## 弃用与遗产

SSL 3.0 在 RFC 7568（2015 年 6 月）中被正式弃用，该文件记载它于 1999 年被 TLS 1.0 取代，随后又被 TLS 1.1 及更高版本取代。<sup>[6](https://www.rfc-editor.org/info/rfc7568)</sup> 支付卡行业设定了 2018 年 6 月 30 日的迁移截止日期，要求在各环境中淘汰 SSL 和早期 TLS，但声明支付终端例外，因为支付终端不受那些影响基于浏览器的系统的已知漏洞影响。<sup>[8](https://blog.pcisecuritystandards.org/hubfs/Migrating_from_SSL_and_Early_TLS_-v12.pdf)</sup> 美国国家标准与技术研究院（NIST）关于 TLS 实现的指南要求政府服务器和客户端支持使用基于联邦信息处理标准（FIPS）的密码套件的 TLS 1.2，并要求在 2024 年 1 月 1 日前支持 [TLS 1.3](https://www.edgepedia.org/zh/tls-1-3)。<sup>[15](https://www.nist.gov/publications/guidelines-selection-configuration-and-use-transport-layer-security-tls-0)</sup>

该协议的结构在其后继者中得以保留：记录层、在任何应用数据流动之前认证对等方并协商密钥的握手协议，以及为提高效率而采用的会话缓存方案，都从 SSL 3.0 延续到了 TLS。<sup>[2](https://datatracker.ietf.org/doc/html/rfc6101)</sup><sup> • </sup><sup>[3](https://datatracker.ietf.org/doc/html/rfc2246)</sup>

## References

1. [Evolution of HTTP, MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Evolution_of_HTTP)
2. [RFC 6101: The Secure Sockets Layer (SSL) Protocol Version 3.0, IETF](https://datatracker.ietf.org/doc/html/rfc6101)
3. [RFC 2246: The TLS Protocol Version 1.0, IETF](https://datatracker.ietf.org/doc/html/rfc2246)
4. [This POODLE bites: exploiting the SSL 3.0 fallback, Google Online Security Blog](https://security.googleblog.com/2014/10/this-poodle-bites-exploiting-ssl-30.html)
5. [This POODLE Bites: Exploiting The SSL 3.0 Fallback (paper PDF)](https://atvirtual.eu/docs/ssl-poodle.pdf)
6. [RFC 7568: Deprecating Secure Sockets Layer Version 3.0, IETF](https://www.rfc-editor.org/info/rfc7568)
7. [RFC 6176: Prohibiting Secure Sockets Layer (SSL) Version 2.0, IETF](https://www.rfc-editor.org/rfc/rfc6176.html)
8. [Migrating from SSL and Early TLS, PCI Security Standards Council](https://blog.pcisecuritystandards.org/hubfs/Migrating_from_SSL_and_Early_TLS_-v12.pdf)
9. [USENIX Security '15 Proceedings](https://www.usenix.org/sites/default/files/sec15_full_proceedings_interior.pdf)
10. [The POODLE Attack and the End of SSL 3.0, Mozilla Security Blog](https://blog.mozilla.org/security/2014/10/14/the-poodle-attack-and-the-end-of-ssl-3-0/)
11. [TA14-290A: SSL 3.0 Protocol Vulnerability and POODLE Attack, US-CERT](https://seclists.org/cert/2014/166)
12. [POODLE: SSL 3.0 Vulnerability (CVE-2014-3566), UC Berkeley Information Security Office](https://security.berkeley.edu/news/poodle-ssl-30-vulnerability-cve-2014-3566)
13. [Poodle: introducing another web bug that makes browsing less safe, The Guardian](https://www.theguardian.com/technology/2014/oct/15/poodle-web-security-ssl-v3)
14. [POODLE attacks on SSLv3, ImperialViolet (Adam Langley)](https://www.imperialviolet.org/2014/10/14/poodle.html)
15. [Guidelines for the Selection, Configuration, and Use of Transport Layer Security (TLS) Implementations, NIST](https://www.nist.gov/publications/guidelines-selection-configuration-and-use-transport-layer-security-tls-0)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Network defense and threats › TLS and transport-layer security

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/secure-sockets-layer

English original: https://www.edgepedia.org/secure-sockets-layer
