# Confluent with Redis Cloud You can send data from [Confluent Cloud](http://confluent.cloud/) to your Redis Cloud database using the [Redis Sink connector for Confluent Cloud](http://docs.confluent.io/cloud/current/connectors/cc-redis-sink.html). ## Prerequisites Before you add the Redis Sink Confluent connector to your Confluent Cloud cluster: 1. [Create a database](http://redis.io/docs/latest/operate/rc/databases/create-database) in the same region as your Confluent Cloud cluster. 1. If you decide to [enable Transport Layer Security (TLS)](http://redis.io/docs/latest/operate/rc/security/database-security/tls-ssl) for your Redis database, [download the server certificate](http://redis.io/docs/latest/operate/rc/security/database-security/tls-ssl#download-certificates) from the Redis Cloud console and [encode it](#encode-server-certificate) to be used with Confluent Cloud. 1. Ensure you meet the prerequisites in the [Redis Sink connector documentation](http://docs.confluent.io/cloud/current/connectors/cc-redis-sink.html#quick-start) to set up your Redis Sink with Confluent Cloud. ### Encode server certificate If you decide to enable Transport Layer Security (TLS) for your database, you will need to encode the [server certificate](http://redis.io/docs/latest/operate/rc/security/database-security/tls-ssl#download-certificates) (`redis_ca.pem`) for use as the Confluent Cloud Truststore file. To do this: 1. Use a base64 utility to encode `redis_ca.pem` into base64 in a new file. For example, using the [`base64` command-line utility](http://linux.die.net/man/1/base64): ```sh $ base64 -i redis_ca.pem -o ``` 1. Using a text editor, add the following text to the beginning of the truststore file: ```text data:text/plain;base64 ``` 1. Save and close the truststore file. ## Connect the Redis Sink connector to Redis Cloud To add the Redis Sink connector to your Confluent Cloud environment from the Redis Cloud console: 1. From the [Redis Cloud console](http://cloud.redis.io/), select **Account Settings** and then select the **Integrations** tab. 1. Select the **Configure** button in the **Confluent** tile. 1. This will take you to [New Sink Connector](http://confluent.cloud/go/new-sink-connector/RedisSink) on Confluent Cloud. If you have more than one Confluent Cloud environment or Cluster, select your environment and cluster from the lists and select **Continue**. 1. From there, follow the steps to [Enter the connector details](http://docs.confluent.io/cloud/current/connectors/cc-redis-sink.html#step-4-enter-the-connector-details) on the Confluent documentation. When you get to the **Authentication** step, fill in the fields with the following information: - **Redis hostname**: The Public endpoint of your database, without the port number. This can be found in the [Redis Cloud console](http://cloud.redis.io/) from the database list or from the **General** section of the **Configuration** tab for the source database. - **Redis port number**: The database's port. This is the number at the end of your database's Public endpoint. - **Redis database index**: Set this to 0 for a Redis Cloud database. - **Redis server password**: Enter the database password. If you have not set your own database user and password, use the [default user password](http://redis.io/docs/latest/operate/rc/security/access-control/data-access-control/default-user), which appears in the **Security** section of the **Configuration** tab of the database details screen. - **SSL mode**: Set depending on what type of [TLS authentication](http://redis.io/docs/latest/operate/rc/security/database-security/tls-ssl) is set for your database. - If TLS authentication is turned off, select **disabled**. - If TLS authentication is turned on, select **server**. - **Trustore file**: If the **SSL mode** is set to **server**, upload the truststore file created when you [encoded the server certificate](#encode-server-certificate). - **Redis Server mode**: If [OSS Cluster API](http://redis.io/docs/latest/operate/rc/databases/configuration/clustering#oss-cluster-api) is enabled, select **Cluster**. Otherwise, select **Standalone**. Select **Continue** once you have entered the database information. Enter the rest of the [connector details](http://docs.confluent.io/cloud/current/connectors/cc-redis-sink.html#step-4-enter-the-connector-details) from the **Configuration** step. 1. [Connect to your database](http://redis.io/docs/latest/operate/rc/rc-quickstart#connect-to-a-database) to verify that data is being stored.