Connect to AWS ElastiCache with In-Transit Encryption

倖福魔咒の 提交于 2019-12-06 01:30:02

问题


ElastiCache with encryption uses TLS to communicate with redis client, yet as I've seen redis clients in all languages (ioredis, predis, go-redis) require a pem file when configuring the client to us TLS.

How can I connect to Elasticache with in-transit encryption without given the ceritificate for the TLS?


回答1:


solution - no certificate is needed, just to enable TLS in the client (ioredis for example is just to have tls: {}




回答2:


Here is my working demo code using 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


来源:https://stackoverflow.com/questions/47635016/connect-to-aws-elasticache-with-in-transit-encryption

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!