通过传输中加密连接到 AWS ElastiCache

问题描述 投票:0回答:3

具有加密功能的 ElastiCache 使用 TLS 与 Redis 客户端进行通信,但正如我所见,所有语言的 Redis 客户端(ioredis、predis、go-redis)在将客户端配置为我们的 TLS 时都需要 pem 文件。

如何在没有提供 TLS 证书的情况下使用传输中加密连接到 Elasticache?

amazon-web-services encryption redis amazon-elasticache
3个回答
10
投票

解决方案 - 不需要证书,只需在客户端中启用 TLS(例如 ioredis 只需要

tls: {}


2
投票

这是我使用 Predis 的工作演示代码。

$servers = ['tls://master.my-test-redis.8juowe.euw2.cache.amazonaws.com:6379']; // your endpoint
$options = ['parameters' => ['password' =>   $password ]]; // put your password here
$redis   = new Predis\Client($servers, $options ); // Instance your client

-1
投票

@尼克吉南托

如何传递 LettuceClientConfiguration 的 tls 配置?下面的代码是索取证书

© www.soinside.com 2019 - 2024. All rights reserved.