# 在启用 TLS（传输中加密）的情况下连接到 ElastiCache Redis

**URL:** <https://meta.discourse.org/t/connecting-to-elasticache-redis-with-tls-enabled-in-transit-encryption/122031>\
**Category:** Feature\
**Tags:** pr-welcome\
**Created:** [2019 年7 月 3 日 18:52 UTC](https://meta.discourse.org/t/connecting-to-elasticache-redis-with-tls-enabled-in-transit-encryption/122031 "2019-07-03T18:52:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Yevhenii\_Baraniuk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yevhenii_baraniuk/32/148388_2.png) [@Yevhenii\_Baraniuk](https://meta.discourse.org/u/Yevhenii_Baraniuk)\
发布日期： [2019 年7 月 3 日 18:52 UTC](https://meta.discourse.org/t/connecting-to-elasticache-redis-with-tls-enabled-in-transit-encryption/122031/1 "2019-07-03T18:52:41Z")

</div>

我们的 Discourse 使用了在 Amazon ElastiCache 中创建的 Redis 集群，该集群支持启用传输加密（TLS）。然而，一旦我们在 ElastiCache 上启用 TLS，Discourse 就无法连接到 Redis。

看起来 Discourse 尚不支持此功能，尽管 redis-rb 客户端支持，正如在类似问题中提到的：[Redis::ConnectionError: Connection lost (ECONNRESET) when using ElastiCache with TLS enabled · Issue #771 · redis/redis-rb · GitHub](https://github.com/redis/redis-rb/issues/771#issuecomment-411542148)

---

_[View the full topic](https://meta.discourse.org/t/connecting-to-elasticache-redis-with-tls-enabled-in-transit-encryption/122031)._
