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:
Rohit Yadav 2018-03-26 14:16:49 +05:30 committed by GitHub
parent c8dcc64b65
commit c4cc679c3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -15,4 +15,4 @@
# specific language governing permissions and limitations # specific language governing permissions and limitations
# under the License. # 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

View File

@ -34,7 +34,7 @@ public class SSLUtils {
public static String[] getSupportedProtocols(String[] protocols) { public static String[] getSupportedProtocols(String[] protocols) {
Set<String> set = new HashSet<String>(); Set<String> set = new HashSet<String>();
for (String s : protocols) { 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; continue;
} }
set.add(s); set.add(s);
@ -46,7 +46,7 @@ public class SSLUtils {
* It returns recommended protocols that are considered secure. * It returns recommended protocols that are considered secure.
*/ */
public static String[] getRecommendedProtocols() { public static String[] getRecommendedProtocols() {
return new String[] { "TLSv1.2" }; return new String[] { "TLSv1", "TLSv1.1", "TLSv1.2" };
} }
/** /**

View File

@ -69,9 +69,9 @@ public class SSLUtilsTest {
} }
private void verifyProtocols(ArrayList<String> protocolsList) { private void verifyProtocols(ArrayList<String> protocolsList) {
Assert.assertTrue(protocolsList.contains("TLSv1"));
Assert.assertTrue(protocolsList.contains("TLSv1.1"));
Assert.assertTrue(protocolsList.contains("TLSv1.2")); 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("SSLv3"));
Assert.assertFalse(protocolsList.contains("SSLv2Hello")); Assert.assertFalse(protocolsList.contains("SSLv2Hello"));
} }