dotnetcore / dotnetcore/EasyCaching
For Redis caching where is the config can i set my certificate path?
- Dominant language
- C#
- Stars
- 2.1k
- Forks
- 336
- PR merge metrics
- No merged PRs in 30d
Description
New to Redis, apologies if i am not understanding
the redis application i need to connect to requires SSL
```c#
private static IServiceCollection RegisterRedisCache(this IServiceCollection services, IConfiguration configuration)
{
_ = services.AddEasyCaching(options =>
{
Action easycaching = x =>
{
x.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore;
x.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore;
};
_ = options.WithJson(easycaching, "MY_INSTANCE");
options.UseRedis(config =>
{
config.DBConfig = new RedisDBOptions
{
Username = "username",
Password = "password",
IsSsl = true,
SslHost = "hosturl here",
ConnectionTimeout = 5000,
Database = 0,
};
config.DBConfig.Endpoints.Add(new ServerEndPoint("host url here", port here));
config.EnableLogging = true;
}, "MY_INSTANCE");
});
return services;
}
```
but they say this
The SSL encryption for your database connection is enabled by default. The CA Certificate is required for connection.
please can someone explain to me how to add my certificate
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.