# TLS_NULL_WITH_NULL_NULL 密码套件

> TLS_NULL_WITH_NULL_NULL（0x00,0x00）：NULL/NULL · NULL · SSL 3.0, TLS 1.0, TLS 1.1, TLS 1.2。ssl.sh 评级：不安全。含 OpenSSL/GnuTLS 名称和 Nginx/Apache 配置。

Source: https://ssl.sh/zh/ciphers/tls-null-with-null-null/
Last updated: 2026-11-10

TLS_NULL_WITH_NULL_NULL（0x00,0x00）是用于 SSL 3.0, TLS 1.0, TLS 1.1, TLS 1.2 的密码套件：NULL 密钥交换、NULL 身份认证、NULL 加密、NULL 消息认证。ssl.sh 评级为“不安全”。

| 字段 | 值 |
|---|---|
| IANA | TLS_NULL_WITH_NULL_NULL |
| 十六进制码 | 0x00,0x00 |
| OpenSSL | OpenSSL 3.5 不支持 |
| GnuTLS | - |
| 密钥交换 | NULL |
| 身份认证 | NULL |
| 加密算法 | NULL |
| 消息认证（MAC） | NULL |
| TLS 版本 | SSL 3.0, TLS 1.0, TLS 1.1, TLS 1.2 |
| 评级 | 不安全 |
| IANA“Recommended” | N |
| 规范 | RFC 5246 |

## 各组成部分说明

[密码套件](https://ssl.sh/zh/glossary/cipher-suite/)规定了客户端和服务器在一次握手中共同使用的一组算法。TLS_NULL_WITH_NULL_NULL 由“无密钥交换、无加密、无 MAC”组成。下面逐项说明每个部分及其已知弱点；整体原理可参考[密码套件详解](https://ssl.sh/zh/learn/cipher-suites/)。

TLS_NULL_WITH_NULL_NULL 不是可用的套件：它描述的是连接在首次握手完成之前的状态，没有密钥交换、没有加密、也没有 MAC。[RFC 5246](https://www.rfc-editor.org/rfc/rfc5246)（2008 年）规定它绝不能（MUST NOT）被协商，因为它提供的保护并不比不加密的连接多。

## 评级理由

- 不加密（NULL）：数据以明文传输。

## 哪些 TLS 库支持

以下是 2026-11-10 从各库源码或官方文档读取的 TLS_NULL_WITH_NULL_NULL 支持情况。“默认启用”指不做任何配置就会协商；“支持，默认关闭”指已经实现，但需要手动打开。

| 库 | 状态 | 说明 |
|---|---|---|
| OpenSSL 3.5 | 不支持 | - |
| GnuTLS | 不支持 | - |
| BoringSSL | 不支持 | - |
| Go crypto/tls | 不支持 | - |
| NSS 3.133 | 不支持 | - |
| Firefox | 不支持 | - |
| Java 21 (SunJSSE) | 不支持 | - |
| Windows Schannel (Windows 11 / Server 2022) | 不支持 | - |
| rustls 0.23.46 | 不支持 | - |

这里跟踪的 9 个库都没有默认启用它。没有一个库实现它。

NSS 一行是 NSS 库自身的默认值；Firefox 启动时会先关闭 NSS 的全部套件，只重新打开有 security.ssl3.* 或 security.tls13.* 偏好项的那些。Java 的默认状态依据 Oracle 为 JDK 21 记录的 jdk.tls.disabledAlgorithms 默认值推算，后续更新可能会再加限制。OpenSSL 和 GnuTLS 两行只表示是否实现。

- [BoringSSL — ssl/ssl_cipher.cc (main)](https://boringssl.googlesource.com/boringssl/+/refs/heads/main/ssl/ssl_cipher.cc) (2026-11-10)
- [Go — src/crypto/tls/cipher_suites.go (master)](https://github.com/golang/go/blob/master/src/crypto/tls/cipher_suites.go) (2026-11-10)
- [Go — src/crypto/tls/defaults.go (master)](https://github.com/golang/go/blob/master/src/crypto/tls/defaults.go) (2026-11-10)
- [NSS — lib/ssl/ssl3con.c (as vendored in Firefox)](https://github.com/mozilla-firefox/firefox/blob/main/security/nss/lib/ssl/ssl3con.c) (2026-11-10)
- [NSS — TAG-INFO](https://github.com/mozilla-firefox/firefox/blob/main/security/nss/TAG-INFO) (2026-11-10)
- [Firefox — security/manager/ssl/nsNSSComponent.cpp](https://github.com/mozilla-firefox/firefox/blob/main/security/manager/ssl/nsNSSComponent.cpp) (2026-11-10)
- [Firefox — modules/libpref/init/StaticPrefList.yaml](https://github.com/mozilla-firefox/firefox/blob/main/modules/libpref/init/StaticPrefList.yaml) (2026-11-10)
- [Oracle — JDK 21 Providers Documentation: SunJSSE Cipher Suites](https://docs.oracle.com/en/java/javase/21/security/oracle-providers.html#GUID-7093246A-31A3-4304-AC5F-5FB6400405E2) (2026-11-10)
- [Oracle — JDK 21 JSSE Reference Guide: jdk.tls.disabledAlgorithms](https://docs.oracle.com/en/java/javase/21/security/java-secure-socket-extension-jsse-reference-guide.html) (2026-11-10)
- [Microsoft Learn — TLS Cipher Suites in Windows 11](https://learn.microsoft.com/en-us/windows/win32/secauthn/tls-cipher-suites-in-windows-11) (2026-11-10)
- [Microsoft Learn — TLS Cipher Suites in Windows Server 2022](https://learn.microsoft.com/en-us/windows/win32/secauthn/tls-cipher-suites-in-windows-server-2022) (2026-11-10)
- [docs.rs — rustls 0.23.46 crypto::aws_lc_rs (default provider)](https://docs.rs/rustls/0.23.46/src/rustls/crypto/aws_lc_rs/mod.rs.html) (2026-11-10)

## 历史与标准状态

TLS_NULL_WITH_NULL_NULL（0x00,0x00）在 IANA TLS 密码套件注册表中登记，规范文档为 [RFC 5246](https://www.rfc-editor.org/rfc/rfc5246)《The Transport Layer Security (TLS) Protocol Version 1.2》（2008 年 8 月，标准轨道）。RFC 5246 后来已被 [RFC 8446](https://www.rfc-editor.org/rfc/rfc8446)（2018 年） 和 [RFC 9846](https://www.rfc-editor.org/rfc/rfc9846)（2026 年） 废止（obsoleted）。BCP 195 中的 [RFC 9325](https://www.rfc-editor.org/rfc/rfc9325)（2022 年）规定实现绝不能（MUST NOT）协商不加密的 NULL 套件。注册表把它标为 N。按照 [RFC 8447](https://www.rfc-editor.org/rfc/rfc8447)（2018 年）的解释，这表示它没有经过 IETF 共识流程、适用范围有限或只面向特定场景，并不一定意味着有缺陷。

## 如何测试服务器是否接受它

OpenSSL 3.5 无法提供 TLS_NULL_WITH_NULL_NULL，openssl s_client 不能直接测试；请使用自带该套件实现的扫描工具。

想解析套件名称或十六进制编号，可以用[密码套件查询](https://ssl.sh/zh/tools/cipher-suite-lookup/)；[SSL 检测](https://ssl.sh/zh/tools/ssl-checker/)会显示线上服务器接受哪些协议版本以及实际协商出的密码套件。

## 常见问题

### TLS_NULL_WITH_NULL_NULL 安全吗？

不安全。ssl.sh 把它评为“不安全”。不加密（NULL）：数据以明文传输。BCP 195 中的 [RFC 9325](https://www.rfc-editor.org/rfc/rfc9325)（2022 年）规定实现绝不能（MUST NOT）协商不加密的 NULL 套件。

### TLS 1.3 能用 TLS_NULL_WITH_NULL_NULL 吗？

不能。TLS 1.3 有自己的一套套件，名字里只写 AEAD 和哈希，TLS 1.2 的套件不能用于 TLS 1.3 握手。TLS_NULL_WITH_NULL_NULL 适用于 SSL 3.0, TLS 1.0, TLS 1.1, TLS 1.2。最接近的 TLS 1.3 套件是 [TLS_AES_128_GCM_SHA256](https://ssl.sh/zh/ciphers/tls-aes-128-gcm-sha256/)，TLS 1.3 会另外协商 X25519 等密钥交换与它搭配。

### 在 Nginx 或 Apache 里怎么禁用 TLS_NULL_WITH_NULL_NULL？

不需要禁用：Nginx 和 Apache httpd 通常使用的 OpenSSL 3.5 根本没有实现 TLS_NULL_WITH_NULL_NULL，它们无法协商这个套件。

### 哪些客户端和库还支持 TLS_NULL_WITH_NULL_NULL？

不支持：OpenSSL 3.5、GnuTLS、BoringSSL、Go crypto/tls、NSS 3.133、Firefox、Java 21 (SunJSSE)、Windows Schannel (Windows 11 / Server 2022) 和 rustls 0.23.46。
