1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-12-21 23:28:52 -05:00

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

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