Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
SslCipherList.java - SSL Cipher List
How to get a list of SSL ciphers supported in jsse.jar?
✍: FYIcenter
You can use the following sample Java code to a list of SSL ciphers supported in jsse.jar:
// Copyright (c) FYIcenter.com import java.net.*; import java.io.*; import javax.net.ssl.*; public class SslCipherList { public static void main(String[] args) throws Exception { SSLServerSocketFactory factory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault(); SSLServerSocket socket = (SSLServerSocket)factory.createServerSocket(443); String [] cipherSuites = socket.getEnabledCipherSuites(); System.out.println("List of SSL ciphers supported:"); for (int i = 0; i < cipherSuites.length; i++) { System.out.println(" " + i + ": " + cipherSuites[i]); } socket.close(); } }
You can compile and run the above example in a command window:
\fyicenter>\local\jdk-1.8.0\bin\javac SslCipherList.java \fyicenter>\local\jdk-1.8.0\bin\java SslCipherList List of SSL ciphers supported: 0: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 1: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 2: TLS_RSA_WITH_AES_128_CBC_SHA256 3: TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 4: TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 5: TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 6: TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 7: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA 8: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA 9: TLS_RSA_WITH_AES_128_CBC_SHA 10: TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA 11: TLS_ECDH_RSA_WITH_AES_128_CBC_SHA 12: TLS_DHE_RSA_WITH_AES_128_CBC_SHA 13: TLS_DHE_DSS_WITH_AES_128_CBC_SHA 14: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 15: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 16: TLS_RSA_WITH_AES_128_GCM_SHA256 17: TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 18: TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 19: TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 20: TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 21: TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA 22: TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA 23: SSL_RSA_WITH_3DES_EDE_CBC_SHA 24: TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA 25: TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA 26: SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA 27: SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA 28: TLS_ECDHE_ECDSA_WITH_RC4_128_SHA 29: TLS_ECDHE_RSA_WITH_RC4_128_SHA 30: SSL_RSA_WITH_RC4_128_SHA 31: TLS_ECDH_ECDSA_WITH_RC4_128_SHA 32: TLS_ECDH_RSA_WITH_RC4_128_SHA 33: SSL_RSA_WITH_RC4_128_MD5 34: TLS_EMPTY_RENEGOTIATION_INFO_SCSV
⇒ SslClientCmd.java - SSL Client Command Example
⇐ SslSocketInfo.java - SSL Socket Information
2018-03-31, 2387🔥, 0💬
Popular Posts:
JDK 11 jdk.javadoc.jmod is the JMOD file for JDK 11 Java Document tool, which can be invoked by the ...
commons-io-2.6-sources.j aris the source JAR file for Apache Commons IO 2.6, which is a library of u...
JDK 11 jdk.xml.dom.jmod is the JMOD file for JDK 11 XML DOM module. JDK 11 XML DOM module compiled c...
Smack is an Open Source XMPP (Jabber) client library for instant messaging and presence. A pure Java...
JDK 11 jdk.jshell.jmod is the JMOD file for JDK 11 JShell tool, which can be invoked by the "jshell"...