diff options
author | Vlad Turchenko <vlad@penza19.com> | 2021-03-16 16:55:29 -0600 |
---|---|---|
committer | Michael Grunder <michael.grunder@gmail.com> | 2022-09-08 14:02:29 -0700 |
commit | 5392adc26515e4ac26ebd612eb88282bdb23a1a4 (patch) | |
tree | 7a9f9defc9b73a3c820011f49fb60fae7f45a6c0 /ssl.c | |
parent | 560e6648627cfd9bf347cffe5616d8043cbe940e (diff) |
set default SSL certificate directory
Diffstat (limited to 'ssl.c')
-rw-r--r-- | ssl.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |