Redis Connection Issues

Issue

Your app is no longer connecting to Redis and you are seeing errors relating to the self signed certificate.

Eg: <OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)> SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)

Resolution

There have been some errors lately in relation to Redis 6 and how it works with self signed certificates.

With Redis 6, you need to add { verify_mode: OpenSSL::SSL::VERIFY_NONE } (or your language equivalent) in order to get it working. We have example implementations for the following:

Please note that in PHP { verify_mode: OpenSSL::SSL::VERIFY_NONE } is known as [verify_peer_name].

An example implementation is using ?ssl[verify_peer_name]=0&ssl[verify_peer]=0 with the latest Predis. More info on connecting in PHP

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support