shrpx: Load certificate chain from file
This commit is contained in:
parent
83b3827b51
commit
d36f9f1c5b
|
@ -105,8 +105,8 @@ SSL_CTX* create_ssl_context()
|
||||||
LOG(FATAL) << "SSL_CTX_use_PrivateKey_file failed.";
|
LOG(FATAL) << "SSL_CTX_use_PrivateKey_file failed.";
|
||||||
DIE();
|
DIE();
|
||||||
}
|
}
|
||||||
if(SSL_CTX_use_certificate_file(ssl_ctx, get_config()->cert_file,
|
if(SSL_CTX_use_certificate_chain_file(ssl_ctx,
|
||||||
SSL_FILETYPE_PEM) != 1) {
|
get_config()->cert_file) != 1) {
|
||||||
LOG(FATAL) << "SSL_CTX_use_certificate_file failed.";
|
LOG(FATAL) << "SSL_CTX_use_certificate_file failed.";
|
||||||
DIE();
|
DIE();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue