Update simple.c
To use `SSL_CTX_use_certificate_chain_file` instead of `SSL_CTX_use_certificate_file`
@@ -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;
}
