When connecting to Redis I get an EndOfFile error

2019/07/23 11:38:54 Dial EOF

An EndOfFile or EOF error occurs when:

  • Your connection string does not contain the --tls flag.
  • Your connection string is otherwise unable to encrypt the connection.

If you’re getting this error:

  • Verify that your connection string uses the --tls flag.
  • Verify that your local machine’s certificate store is up to date.