[go: nahoru, domu]

Skip to content

Commit

Permalink
Update simple.c
Browse files Browse the repository at this point in the history
To use `SSL_CTX_use_certificate_chain_file` instead of `SSL_CTX_use_certificate_file`
  • Loading branch information
chidea authored Jun 28, 2018
1 parent 890291f commit 600ba21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/libh2o/simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ static int setup_ssl(const char *cert_file, const char *key_file, const char *ci
#endif

/* load certificate and private key */
if (SSL_CTX_use_certificate_file(accept_ctx.ssl_ctx, cert_file, SSL_FILETYPE_PEM) != 1) {
if (SSL_CTX_use_certificate_chain_file(accept_ctx.ssl_ctx, cert_file) != 1) {
fprintf(stderr, "an error occurred while trying to load server certificate file:%s\n", cert_file);
return -1;
}
Expand Down

0 comments on commit 600ba21

Please sign in to comment.