mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 09:43:51 +00:00
Fixed #123
This commit is contained in:
parent
61c19052f0
commit
a72eef7fb4
@ -2418,7 +2418,7 @@ inline SSLServer::SSLServer(const char* cert_path, const char* private_key_path)
|
|||||||
// SSL_CTX_set_tmp_ecdh(ctx_, ecdh);
|
// SSL_CTX_set_tmp_ecdh(ctx_, ecdh);
|
||||||
// EC_KEY_free(ecdh);
|
// EC_KEY_free(ecdh);
|
||||||
|
|
||||||
if (SSL_CTX_use_certificate_file(ctx_, cert_path, SSL_FILETYPE_PEM) != 1 ||
|
if (SSL_CTX_use_certificate_chain_file(ctx_, cert_path) != 1 ||
|
||||||
SSL_CTX_use_PrivateKey_file(ctx_, private_key_path, SSL_FILETYPE_PEM) != 1) {
|
SSL_CTX_use_PrivateKey_file(ctx_, private_key_path, SSL_FILETYPE_PEM) != 1) {
|
||||||
SSL_CTX_free(ctx_);
|
SSL_CTX_free(ctx_);
|
||||||
ctx_ = nullptr;
|
ctx_ = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user