shrpx: Load certificate chain from file

This commit is contained in:
Tatsuhiro Tsujikawa 2012-07-16 18:31:52 +09:00
parent 83b3827b51
commit d36f9f1c5b
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}