Skip to content

Commit

Permalink
Use a more recent TLS version
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 7, 2020
1 parent bf9891d commit 455760d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ public SSLContext getSSLContext() {

private SSLContext createSslContext() {
try {
SSLContext newSslContext = SSLContext.getInstance("TLS");
String sslProtocol = System.getenv("PRINT_SSL_PROTOCOL");
if (sslProtocol == null) {
sslProtocol = "TLSv1.2";
}
SSLContext newSslContext = SSLContext.getInstance(sslProtocol);

KeyStore ks = KeyStore.getInstance("JKS");

Expand Down

0 comments on commit 455760d

Please sign in to comment.