From d36f9f1c5be3ca1a85b82dc13e6674a6277b8572 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 16 Jul 2012 18:31:52 +0900 Subject: [PATCH] shrpx: Load certificate chain from file --- examples/shrpx_ssl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/shrpx_ssl.cc b/examples/shrpx_ssl.cc index 9f941af..5cd60d6 100644 --- a/examples/shrpx_ssl.cc +++ b/examples/shrpx_ssl.cc @@ -105,8 +105,8 @@ SSL_CTX* create_ssl_context() LOG(FATAL) << "SSL_CTX_use_PrivateKey_file failed."; DIE(); } - if(SSL_CTX_use_certificate_file(ssl_ctx, get_config()->cert_file, - SSL_FILETYPE_PEM) != 1) { + if(SSL_CTX_use_certificate_chain_file(ssl_ctx, + get_config()->cert_file) != 1) { LOG(FATAL) << "SSL_CTX_use_certificate_file failed."; DIE(); }