mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
Using "SSL_CTX_use_certificate_chain_file" instead of "SSL_CTX_use_certificate_file"
to support server certificates signed by intermediaries.
This commit is contained in:
parent
0d586c4930
commit
9b3d4b2152
1 changed files with 2 additions and 2 deletions
|
@ -2800,8 +2800,8 @@ libwebsocket_create_context(int port, const char *interf,
|
|||
/* openssl init for server sockets */
|
||||
|
||||
/* set the local certificate from CertFile */
|
||||
n = SSL_CTX_use_certificate_file(context->ssl_ctx,
|
||||
ssl_cert_filepath, SSL_FILETYPE_PEM);
|
||||
n = SSL_CTX_use_certificate_chain_file(context->ssl_ctx,
|
||||
ssl_cert_filepath);
|
||||
if (n != 1) {
|
||||
fprintf(stderr, "problem getting cert '%s': %s\n",
|
||||
ssl_cert_filepath,
|
||||
|
|
Loading…
Add table
Reference in a new issue