Skip to content

Commit 32b5062

Browse files
systemvm: use TLS v1.2 by default (#14)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 846c9bc commit 32b5062

File tree

1 file changed

+2
-2
lines changed
  • utils/src/main/java/org/apache/cloudstack/utils/security

1 file changed

+2
-2
lines changed

utils/src/main/java/org/apache/cloudstack/utils/security/SSLUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public static String[] getSupportedCiphers() throws NoSuchAlgorithmException {
4949
}
5050

5151
public static SSLContext getSSLContext() throws NoSuchAlgorithmException {
52-
return SSLContext.getInstance("TLSv1");
52+
return SSLContext.getInstance("TLSv1.2");
5353
}
5454

5555
public static SSLContext getSSLContext(String provider) throws NoSuchAlgorithmException, NoSuchProviderException {
56-
return SSLContext.getInstance("TLSv1", provider);
56+
return SSLContext.getInstance("TLSv1.2", provider);
5757
}
5858
}

0 commit comments

Comments
 (0)