Change cipher suites for SSL connection 10/46010/5
authorHsin-Yi Shen <syshen66@gmail.com>
Mon, 19 Sep 2016 15:57:23 +0000 (08:57 -0700)
committerAnil Vishnoi <vishnoianil@gmail.com>
Tue, 18 Oct 2016 09:14:39 +0000 (09:14 +0000)
Change the list of enabled protocls and cipher suites to meet FIPs security requirement.
Following protocols and cipher suites will be enabled:
ssl protocols [SSLv2Hello, TLSv1.1, TLSv1.2]
cipher suites [TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256,
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,
TLS_RSA_WITH_AES_127_CBC_SHA256]

Change-Id: Ie257c8c89a789911255e92b54997b915deb6c2a4
Signed-off-by: Hsin-Yi Shen <syshen66@gmail.com>
library/impl/src/main/java/org/opendaylight/ovsdb/lib/impl/OvsdbConnectionService.java

index 731d7f1fb840569d57076638515c30f11a018963..d058ca2595a6e52e918482fa620b1cc9e4f5722e 100644 (file)
@@ -277,8 +277,8 @@ public class OvsdbConnectionService implements AutoCloseable, OvsdbConnection {
                                 SSLEngine engine = sslContext.createSSLEngine();
                                 engine.setUseClientMode(false); // work in a server mode
                                 engine.setNeedClientAuth(true); // need client authentication
-                                //Disable SSLv3 and enable all other supported protocols
-                                String[] protocols = {"SSLv2Hello", "TLSv1", "TLSv1.1", "TLSv1.2"};
+                                //Disable SSLv3, TLSv1 and enable all other supported protocols
+                                String[] protocols = {"SSLv2Hello", "TLSv1.1", "TLSv1.2"};
                                 LOG.debug("Set enable protocols {}", Arrays.toString(protocols));
                                 engine.setEnabledProtocols(protocols);
                                 LOG.debug("Supported ssl protocols {}",
@@ -286,8 +286,11 @@ public class OvsdbConnectionService implements AutoCloseable, OvsdbConnection {
                                 LOG.debug("Enabled ssl protocols {}",
                                         Arrays.toString(engine.getEnabledProtocols()));
                                 //Set cipher suites
-                                String[] cipherSuites = {"TLS_RSA_WITH_AES_128_CBC_SHA"};
-                                LOG.debug("Set enable cipher cuites {}", Arrays.toString(cipherSuites));
+                                String[] cipherSuites = {"TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256",
+                                                         "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256",
+                                                         "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256",
+                                                         "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256",
+                                                         "TLS_RSA_WITH_AES_128_CBC_SHA256"};
                                 engine.setEnabledCipherSuites(cipherSuites);
                                 LOG.debug("Enabled cipher suites {}",
                                         Arrays.toString(engine.getEnabledCipherSuites()));