# Connection failing, how to correctly configure encryption - SSL/TLS?

**URL:** <https://forum.scylladb.com/t/connection-failing-how-to-correctly-configure-encryption-ssl-tls/2163>\
**Category:** ScyllaDB\
**Tags:** security, docker, configuration, encryption\
**Created:** [June 13, 2024, 4:42am UTC](https://forum.scylladb.com/t/connection-failing-how-to-correctly-configure-encryption-ssl-tls/2163 "2024-06-13T04:42:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/guy/32/9_2.png) [@Guy](https://forum.scylladb.com/u/Guy)\
**Post date:** [June 13, 2024, 4:42am UTC](https://forum.scylladb.com/t/connection-failing-how-to-correctly-configure-encryption-ssl-tls/2163/1 "2024-06-13T04:42:12Z")

</div>

> [@](#):
>
> [**Originally from the User Slack**](https://scylladb-users.slack.com/)
> 
> ![Omkar_Jadhav](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/7b03793fcdeefb5daab84de3d5beb3dd831b6e85.png) **@Omkar\_Jadhav:** Hello, I am trying to setup a single scylla node on my local system using docker-compose.  
> This is my basic setup
> 
> ```auto
> scylladb:
> image: scylladb/scylla
> ports:
> - "9042:9042"
> volumes:
> - type: volume
> source: scylladblocal
> target: /var/lib/scylla
> volume:
> nocopy: true
> 
> ```
> 
> I am trying to use the same client code that we use in production to connect to this node. The client is configured to use SSL/TLS. As a result the connection is failing. How do I configure the scylla node in docker to use SSL/TLS?
> 
> ![Felipe_Cardeneti_Mendes](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/233a9d524fbc97e39f08633c16b3dd2575d1d1f4.jpeg) **@Felipe\_Cardeneti\_Mendes:** You can pass the `--*client-encryption*-options` command line argument to the container. However, given that you will need to copy the certificate, and keys anywhere, might be easier to simply append these arguments to `scylla.yaml` directly.
> 
> See: [https://opensource.docs.scylladb.com/stable/operating-scylla/security/client-node-encryption.html](https://opensource.docs.scylladb.com/stable/operating-scylla/security/client-node-encryption.html)
> 
> > Encryption: Data in Transit Client to Node | ScyllaDB Docs
> 
> ![Omkar_Jadhav](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/7b03793fcdeefb5daab84de3d5beb3dd831b6e85.png) **@Omkar\_Jadhav:** I see, will try this. Thank you
