diff options
Diffstat (limited to 'src/core/security/security_context.c')
-rw-r--r-- | src/core/security/security_context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/security/security_context.c b/src/core/security/security_context.c index f9fb2407cf..e09a569c76 100644 --- a/src/core/security/security_context.c +++ b/src/core/security/security_context.c @@ -39,6 +39,7 @@ #include "src/core/channel/http_client_filter.h" #include "src/core/security/credentials.h" #include "src/core/security/secure_endpoint.h" +#include "src/core/security/ssl_roots.h" #include "src/core/support/env.h" #include "src/core/support/file.h" #include "src/core/support/string.h" @@ -403,6 +404,10 @@ static void init_default_pem_root_certs(void) { } else { default_pem_root_certs = gpr_load_file(default_root_certs_path, NULL); gpr_free(default_root_certs_path); + if (GPR_SLICE_IS_EMPTY(default_pem_root_certs)) { + default_pem_root_certs = + gpr_load_file(GRPC_SSL_ROOTS_WELL_KNOWN_PATH, NULL); + } } } |