82-test_ocsp_cert_chain.t: Terminate the server after 1 connection

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/23857)
This commit is contained in:
Tomas Mraz 2024-03-15 15:33:01 +01:00
parent 933f57dfe2
commit 7054412ea8

View File

@ -85,9 +85,11 @@ sub run_test {
print("ocsp server ready, listening on port $ocsp_port\n");
# openssl s_server -accept 0 -cert server.pem -cert_chain intermediate-cert.pem \
# openssl s_server -accept 0 -naccept 1 \
# -cert server.pem -cert_chain intermediate-cert.pem \
# -status_verbose -status_url http://localhost:19254/ocsp
my @s_server_cmd = ("s_server", "-accept", "0", "-cert", $server_pem, "-cert_chain", $intermediate_cert_pem,
my @s_server_cmd = ("s_server", "-accept", "0", "-naccept", "1",
"-cert", $server_pem, "-cert_chain", $intermediate_cert_pem,
"-status_verbose", "-status_url", "http://localhost:${ocsp_port}/ocsp");
my $s_server_pid = open3(my $s_server_i, my $s_server_o, my $s_server_e = gensym, $shlib_wrap, $apps_openssl, @s_server_cmd);