From 5392adc26515e4ac26ebd612eb88282bdb23a1a4 Mon Sep 17 00:00:00 2001 From: Vlad Turchenko Date: Tue, 16 Mar 2021 16:55:29 -0600 Subject: set default SSL certificate directory --- ssl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ssl.c') diff --git a/ssl.c b/ssl.c index a05b898..7d7ff66 100644 --- a/ssl.c +++ b/ssl.c @@ -293,6 +293,11 @@ redisSSLContext *redisCreateSSLContextWithOptions(redisSSLOptions *options, redi if (error) *error = REDIS_SSL_CTX_CA_CERT_LOAD_FAILED; goto error; } + } else { + if (!SSL_CTX_set_default_verify_paths(ctx->ssl_ctx)) { + if (error) *error = REDIS_SSL_CTX_CLIENT_DEFAULT_CERT_FAILED; + goto error; + } } if (cert_filename) { -- cgit v1.2.3