Open
Description
New to Redis, apologies if i am not understanding
the redis application i need to connect to requires SSL
private static IServiceCollection RegisterRedisCache(this IServiceCollection services, IConfiguration configuration)
{
_ = services.AddEasyCaching(options =>
{
Action<EasyCaching.Serialization.Json.EasyCachingJsonSerializerOptions> 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
Metadata
Metadata
Assignees
Labels
No labels