mirror of
https://github.com/jorisvink/kore
synced 2025-03-13 06:19:02 -04:00
use SSL_CTX_use_certificate_chain_file instead when loading certificates so we can properly use our intermediate authority.
This commit is contained in:
parent
1671698f58
commit
0be748ee0f
@ -169,8 +169,7 @@ kore_server_sslstart(void)
|
||||
return (KORE_RESULT_ERROR);
|
||||
}
|
||||
|
||||
if (!SSL_CTX_use_certificate_file(ssl_ctx, "cert/server.crt",
|
||||
SSL_FILETYPE_PEM)) {
|
||||
if (!SSL_CTX_use_certificate_chain_file(ssl_ctx, "cert/server.crt")) {
|
||||
kore_log("SSL_CTX_use_certificate_file(): %s", ssl_errno_s);
|
||||
return (KORE_RESULT_ERROR);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user