Created
May 10, 2021 11:43
-
-
Save kaicode/8039bd755a4c66c586180422146d016b to your computer and use it in GitHub Desktop.
Java class to print supported SSL protocols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.net.ssl.SSLContext; | |
public class PrintSSLProtocols { | |
public static void main(String[] args) throws Exception { | |
System.out.println(String.join(" ", SSLContext.getDefault().getSupportedSSLParameters().getProtocols())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
Example output: