diff --git a/src/core/config.xml b/src/core/config.xml index a020d04..1561478 100644 --- a/src/core/config.xml +++ b/src/core/config.xml @@ -432,7 +432,7 @@ diff --git a/src/network/openssl.c b/src/network/openssl.c index db2daf3..6e7431c 100644 --- a/src/network/openssl.c +++ b/src/network/openssl.c @@ -127,7 +127,7 @@ extern void net_ssl_context_destroy(struct ssl_context_handle* ctx_) int ssl_load_certificate(struct ssl_context_handle* ctx_, const char* pem_file) { struct net_context_openssl* ctx = (struct net_context_openssl*) ctx_; - if (SSL_CTX_use_certificate_file(ctx->ssl_ctx, pem_file, SSL_FILETYPE_PEM) < 0) + if (SSL_CTX_use_certificate_chain_file(ctx->ssl_ctx, pem_file) < 0) { LOG_ERROR("SSL_CTX_use_certificate_file: %s", ERR_error_string(ERR_get_error(), NULL)); return 0;