title: Springboot Cassandra - CqlSessionFactoryBean with SSL
body: <p>Small question regarding how to connect to a Cassandra cluster that is SSL enabled please.</p>
  <p>Currently, I am connecting to a Cassandra cluster that is <strong>not</strong> SSL enabled by doing the following, and it is working perfectly fine.</p>
  <pre><code>@Configuration
  public class BaseCassandraConfiguration extends AbstractReactiveCassandraConfiguration {
  
      @Value(&quot;${spring.data.cassandra.username}&quot;)
      private String username;
      @Value(&quot;${spring.data.cassandra.password}&quot;)
      private String passPhrase;
      @Value(&quot;${spring.data.cassandra.keyspace-name}&quot;)
      private String keyspace;
      @Value(&quot;${spring.data.cassandra.local-datacenter}&quot;)
      private String datacenter;
      @Value(&quot;${spring.data.cassandra.contact-points}&quot;)
      private String contactPoints;
      @Value(&quot;${spring.data.cassandra.port}&quot;)
      private int    port;
      
      @Bean
      @NonNull
      @Override
      public CqlSessionFactoryBean cassandraSession() {
          final CqlSessionFactoryBean cqlSessionFactoryBean = new CqlSessionFactoryBean();
          cqlSessionFactoryBean.setContactPoints(contactPoints);
          cqlSessionFactoryBean.setKeyspaceName(keyspace);
          cqlSessionFactoryBean.setLocalDatacenter(datacenter);
          cqlSessionFactoryBean.setPort(port);
          cqlSessionFactoryBean.setUsername(username);
          cqlSessionFactoryBean.setPassword(passPhrase);
          return cqlSessionFactoryBean;
      }
  </code></pre>
  <p>I have another Cassandra cluster, that is SSL enabled.</p>
  <p>I was expecting to see something like <code>cqlSessionFactoryBean.setSSLEnabled(true)</code>, something like that. Unfortunately, it seems there is no such.</p>
  <p>May I ask what is the proper way to set up this bean in order to connect to a Cassandra with SSL please?</p>
  <p>Thank you.</p>