def setup_cluster_ssl(client_auth=False):
 use_single_node(start=False)
 ccm_cluster = get_cluster()
 ccm_cluster.stop()
 abs_path_server_keystore_path = os.path.abspath(SERVER_KEYSTORE_PATH)
 config_options = {'client_encryption_options': {'enabled': True, 'keystore': abs_path_server_keystore_path, 'keystore_password': DEFAULT_PASSWORD}}
 if client_auth:
  abs_path_server_truststore_path = os.path.abspath(SERVER_TRUSTSTORE_PATH)
  client_encyrption_options = config_options['client_encryption_options']
  client_encyrption_options['require_client_auth'] = True
  client_encyrption_options['truststore'] = abs_path_server_truststore_path
  client_encyrption_options['truststore_password'] = DEFAULT_PASSWORD
 ccm_cluster.set_configuration_options(config_options)
 ccm_cluster.start(wait_for_binary_proto=True, wait_other_notice=True)

def setup_cluster_ssl ( client_auth = False ) : use_single_node ( start = False ) ccm_cluster = get_cluster ( ) ccm_cluster . stop ( ) abs_path_server_keystore_path = os . path . abspath ( SERVER_KEYSTORE_PATH ) config_options = { 'client_encryption_options' : { 'enabled' : True , 'keystore' : abs_path_server_keystore_path , 'keystore_password' : DEFAULT_PASSWORD } } if client_auth : abs_path_server_truststore_path = os . path . abspath ( SERVER_TRUSTSTORE_PATH ) client_encyrption_options = config_options [ 'client_encryption_options' ] client_encyrption_options [ 'require_client_auth' ] = True client_encyrption_options [ 'truststore' ] = abs_path_server_truststore_path client_encyrption_options [ 'truststore_password' ] = DEFAULT_PASSWORD ccm_cluster . set_configuration_options ( config_options ) ccm_cluster . start ( wait_for_binary_proto = True , wait_other_notice = True )
we need some custom setup for this module .