Skip to content

Commit

Permalink
Add checking server SSL ctx private key. (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim authored Nov 5, 2024
1 parent 57ffb06 commit 48c71d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/WFServer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ SSL_CTX *WFServerBase::new_ssl_ctx(const char *cert_file, const char *key_file)

if (SSL_CTX_use_certificate_chain_file(ssl_ctx, cert_file) > 0 &&
SSL_CTX_use_PrivateKey_file(ssl_ctx, key_file, SSL_FILETYPE_PEM) > 0 &&
SSL_CTX_check_private_key(ssl_ctx) > 0 &&
SSL_CTX_set_tlsext_servername_callback(ssl_ctx, ssl_ctx_callback) > 0 &&
SSL_CTX_set_tlsext_servername_arg(ssl_ctx, this) > 0)
{
Expand Down

0 comments on commit 48c71d7

Please sign in to comment.