Search in sources :

Example 16 with ServerEncryptionOptions

use of org.apache.cassandra.config.EncryptionOptions.ServerEncryptionOptions in project cassandra by apache.

the class MessagingServiceTest method listenRequiredSecureConnectionWithBroadcastAddrAndLegacyPort.

@Test
public void listenRequiredSecureConnectionWithBroadcastAddrAndLegacyPort() throws InterruptedException {
    ServerEncryptionOptions serverEncryptionOptions = new ServerEncryptionOptions().withInternodeEncryption(ServerEncryptionOptions.InternodeEncryption.all).withOptional(false).withLegacySslStoragePort(true);
    listen(serverEncryptionOptions, true);
}
Also used : ServerEncryptionOptions(org.apache.cassandra.config.EncryptionOptions.ServerEncryptionOptions) Test(org.junit.Test)

Aggregations

ServerEncryptionOptions (org.apache.cassandra.config.EncryptionOptions.ServerEncryptionOptions)16 Test (org.junit.Test)14 SslContext (io.netty.handler.ssl.SslContext)4 File (org.apache.cassandra.io.util.File)4 IOException (java.io.IOException)3 CertificateException (java.security.cert.CertificateException)3 SSLServerSocket (javax.net.ssl.SSLServerSocket)1 IInternodeAuthenticator (org.apache.cassandra.auth.IInternodeAuthenticator)1 ConfigurationException (org.apache.cassandra.exceptions.ConfigurationException)1 InetAddressAndPort (org.apache.cassandra.locator.InetAddressAndPort)1