StackExchange / StackExchange/StackExchange.Redis

Connecting to Google-hosted Redis with StackExchange not working with AuthString and TLS enabled CA Cert

Open
#2,299 21 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.2k
Forks
1.6k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

Hello!

We are using StackExchange.Redis version 2.6.70 in a .NET Core 6.0 project, to connect to a Google Cloud Platform Redis instance (version 5.0.0)(a.k.a Memorystore).

We face issues when we are trying to connect to our instance using the library, while with redis-cli the connection succeeds and we are able to see the contents.

The exception that we get in the code is:
exceptionIt was not possible to connect to the redis server(s). There was an authentication failure; check that passwords (or client certificates) are configured correctly: (OpenSslCryptographicException) error:2006D002:BIO routines:BIO_new_file:system lib

P.S: If we disable authentication and TLS in GCP for our Redis instance, the connection through the library succeeds.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the connection using StackExchange.Redis 2.6.70 in .NET Core 6.0 against Google Memorystore with authentication and TLS enabled, then compare it with the successful redis-cli connection. Investigate the CA certificate and authentication configuration associated with the BIO_new_file error; done means the library connects successfully while both authentication and TLS remain enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, redis
Domain
databases, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.