Android 对 TLS 1.1 的支持

信息安全 加密 tls 安卓
2021-09-07 02:18:34

有人知道系统预装的OpenSSL版本是从哪个Android版本开始直接支持TLS 1.1的吗?

2个回答

使用为Android API 中的SSL Socket对象列出的源

客户端

+-------------------------------------------------------------------+
| Protocol | Supported API Levels | Enabled by Default (API Levels) |
+-------------------------------------------------------------------+
| SSLv3    |  1+ (BASE)           |  1+ (BASE)                      |
+-------------------------------------------------------------------+
| TLSv1    |  1+ (BASE)           |  1+ (BASE)                      |
+-------------------------------------------------------------------+
| TLSv1.1  |  16+(JELLYBEAN)      |  20+(KITKAT_WATCH)              |
+-------------------------------------------------------------------+
| TLSv1.2  |  16+(JELLYBEAN)      |  20+(KITKAT_WATCH)              |
+-------------------------------------------------------------------+

服务器端

+-------------------------------------------------------------------+
| Protocol | Supported API Levels | Enabled by Default (API Levels) |
+-------------------------------------------------------------------+
| SSLv3    |  1+ (BASE)           |  1+ (BASE)                      |
+-------------------------------------------------------------------+
| TLSv1    |  1+ (BASE)           |  1+ (BASE)                      |
+-------------------------------------------------------------------+
| TLSv1.1  |  16+(JELLYBEAN)      |  16+(JELLYBEAN)                 |
+-------------------------------------------------------------------+
| TLSv1.2  |  16+(JELLYBEAN)      |  16+(JELLYBEAN)                 |
+-------------------------------------------------------------------+

需要注意的是,API 20 是KITKATW,或KITKAT用于可穿戴设备。这不是第一个KITKAT版本(即 API 19)。因此,对于大多数设备而言,TLSv1.1/1.2 默认启用实际上适用于LOLLIPOP(API 21) 及更高版本。这是对API 级别的快速参考

Android 4.1(API 16),据此:http: //developer.android.com/reference/javax/net/ssl/SSLSocket.html