0

I have installed Redis locally and configured TLS:

redis.conf

tls-cert-file ~/my.crt.pem
tls-key-file ~/my.key.pem
tls-ca-cert-file ~/ca_root.crt

I can use redis-cli to connect to it just fine by:

redis-cli --tls --cert ~/my.crt.pem --key ~/my.key.pem --cacert ~/ca_root.crt

and that works great. How do I setup StackExchange.Redis.ConfigurationOptions properly for TLS to work from a .NET app? No maatter what I do, I get certificate errors or mismatch.

3
  • Which CA is in ca_root.crt does your machine actually trust it? If not why would you expect it to work? Anyway did you try changing ConfigurationOptions.CertificateValidation? Please show what you tried. Commented Feb 5 at 1:22
  • CA is Cloudflare and if my machine does not trust it, I am not sure why the CLI works just fine? In ConfigurationOptions.CertificateValidation I have tried to returning the same certificate without success. Commented Feb 5 at 14:31
  • "In ConfigurationOptions.CertificateValidation I have tried to returning the same certificate without success." Please show the code, as well as the actual error message with stack trace. Commented Feb 5 at 14:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.