# Environment variables required to define TLS in temporalio

**URL:** <https://community.temporal.io/t/environment-variables-required-to-define-tls-in-temporalio/10814>\
**Category:** Community Support\
**Created:** [January 27, 2024, 1:28am UTC](https://community.temporal.io/t/environment-variables-required-to-define-tls-in-temporalio/10814 "2024-01-27T01:28:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tasty\_brownies](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tasty_brownies/32/4863_2.png) [@tasty\_brownies](https://community.temporal.io/u/tasty_brownies)\
**Post date:** [January 27, 2024, 1:28am UTC](https://community.temporal.io/t/environment-variables-required-to-define-tls-in-temporalio/10814/1 "2024-01-27T01:28:40Z")

</div>

Hello,

I am working with a temporalio defined docker-compose file and would like to enable TLS. I cannot for the life of me figure out which tls environment variables I need to define in my docker compose to link to TLS encryption keys. I keep having an ongoing error of “transport: authentication handshake failed: tls: first record does not look like a TLS handshake”

I am working with elasticsearch, postgresql, temporal, temporal-ui, and temporal-admin-tools. My certificates should be valid, since I followed the simple-tls tutorial. The keys work when I test them outside of the temporal server correctly, so I figure I must be configuring this incorrectly. Any insight is greatly appreciated.
