当我使用创建连接时,如何获得 Java客户端javax.net.ssl.SSLSocketFactory
支持的密码列表?
我们使用 Java 8。
我已经签到了jre/lib/security/java.security
。我只能找到禁用密码的列表。
jdk.tls.disabledAlgorithms=DES, DESede, 3DES, SSLv3, RC4, DES, MD5withRSA, DH keySize < 1024, \
EC keySize < 224, 3DES_EDE_CBC, anon, NULL
在哪里可以找到支持的密码列表?
注意:我确实知道如何获取 Java服务器支持的密码列表。我想了解如何获取 Java客户端支持的密码列表。
添加
返回的列表getSupportedCipherSuites
如下:
0 = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384"
1 = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384"
2 = "TLS_RSA_WITH_AES_256_CBC_SHA256"
3 = "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384"
4 = "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384"
5 = "TLS_DHE_RSA_WITH_AES_256_CBC_SHA256"
6 = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256"
7 = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA"
8 = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA"
9 = "TLS_RSA_WITH_AES_256_CBC_SHA"
10 = "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA"
11 = "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA"
12 = "TLS_DHE_RSA_WITH_AES_256_CBC_SHA"
13 = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA"
14 = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"
15 = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
16 = "TLS_RSA_WITH_AES_128_CBC_SHA256"
17 = "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256"
18 = "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256"
19 = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA256"
20 = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256"
21 = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA"
22 = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA"
23 = "TLS_RSA_WITH_AES_128_CBC_SHA"
24 = "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA"
25 = "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA"
26 = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA"
27 = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA"
28 = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
29 = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"
30 = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
31 = "TLS_RSA_WITH_AES_256_GCM_SHA384"
32 = "TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384"
33 = "TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384"
34 = "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384"
35 = "TLS_DHE_DSS_WITH_AES_256_GCM_SHA384"
36 = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
37 = "TLS_RSA_WITH_AES_128_GCM_SHA256"
38 = "TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256"
39 = "TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256"
40 = "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"
41 = "TLS_DHE_DSS_WITH_AES_128_GCM_SHA256"
42 = "TLS_EMPTY_RENEGOTIATION_INFO_SCSV"