Skip to content

Instantly share code, notes, and snippets.

@jkutner
Created December 11, 2017 22:17
Show Gist options
  • Save jkutner/1fc15072347015e7f7e19e3ead86affd to your computer and use it in GitHub Desktop.
Save jkutner/1fc15072347015e7f7e19e3ead86affd to your computer and use it in GitHub Desktop.
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.SSLContext;
public class SSLTest {
public static void main (String[] args) throws Exception {
SSLContext context = SSLContext.getDefault();
SSLSocketFactory sf = context.getSocketFactory();
String[] cipherSuites = sf.getSupportedCipherSuites();
System.out.println("CipherSuite:");
for (String cipher : cipherSuites) {
System.out.println(" " + cipher);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment