Update latency-optimization.c
@@ -319,7 +319,7 @@ int main(int argc, char **argv)
OpenSSL_add_all_algorithms();
if (mode_server) {
ssl_ctx = SSL_CTX_new(SSLv23_server_method());
- SSL_CTX_use_certificate_file(ssl_ctx, "examples/h2o/server.crt", SSL_FILETYPE_PEM);
+ SSL_CTX_use_certificate_chain_file(ssl_ctx, "examples/h2o/server.crt");
SSL_CTX_use_PrivateKey_file(ssl_ctx, "examples/h2o/server.key", SSL_FILETYPE_PEM);
} else {
ssl_ctx = SSL_CTX_new(SSLv23_client_method());
