1
0
Fork 0
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:
David Galeano 2013-01-10 10:11:21 +08:00 committed by Andy Green
parent 0d586c4930
commit 9b3d4b2152

View file

@ -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,