mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-10319: Allow TLSv1, v1.1 for XenServer, Vmware (#2507)
This reverts changes from #2480, instead moves TLS settings to java ciphers settings config file. It should be sufficient to enforce TLS v1.2 on public facing CloudStack services: - CloudStack webserver (Jetty based) - Apache2 for secondary storage VM - CPVM HTTPs server Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
c8dcc64b65
commit
c4cc679c3b
@ -15,4 +15,4 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
jdk.tls.disabledAlgorithms=DH keySize < 128, RSA keySize < 128, DES keySize < 128, SHA1 keySize < 128, MD5 keySize < 128, RC4
|
||||
jdk.tls.disabledAlgorithms=SSLv2Hello, SSLv3, TLSv1, TLSv1.1, DH keySize < 128, RSA keySize < 128, DES keySize < 128, SHA1 keySize < 128, MD5 keySize < 128, RC4
|
||||
|
||||
@ -34,7 +34,7 @@ public class SSLUtils {
|
||||
public static String[] getSupportedProtocols(String[] protocols) {
|
||||
Set<String> set = new HashSet<String>();
|
||||
for (String s : protocols) {
|
||||
if (s.equals("TLSv1") || s.equals("TLSv1.1") || s.equals("SSLv3") || s.equals("SSLv2Hello")) {
|
||||
if (s.equals("SSLv3") || s.equals("SSLv2Hello")) {
|
||||
continue;
|
||||
}
|
||||
set.add(s);
|
||||
@ -46,7 +46,7 @@ public class SSLUtils {
|
||||
* It returns recommended protocols that are considered secure.
|
||||
*/
|
||||
public static String[] getRecommendedProtocols() {
|
||||
return new String[] { "TLSv1.2" };
|
||||
return new String[] { "TLSv1", "TLSv1.1", "TLSv1.2" };
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -69,9 +69,9 @@ public class SSLUtilsTest {
|
||||
}
|
||||
|
||||
private void verifyProtocols(ArrayList<String> protocolsList) {
|
||||
Assert.assertTrue(protocolsList.contains("TLSv1"));
|
||||
Assert.assertTrue(protocolsList.contains("TLSv1.1"));
|
||||
Assert.assertTrue(protocolsList.contains("TLSv1.2"));
|
||||
Assert.assertFalse(protocolsList.contains("TLSv1"));
|
||||
Assert.assertFalse(protocolsList.contains("TLSv1.1"));
|
||||
Assert.assertFalse(protocolsList.contains("SSLv3"));
|
||||
Assert.assertFalse(protocolsList.contains("SSLv2Hello"));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user