Skip to content

Commit

Permalink
82-test_ocsp_cert_chain.t: Terminate the server after 1 connection
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from #23857)
  • Loading branch information
t8m committed Apr 29, 2024
1 parent 933f57d commit 7054412
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/recipes/82-test_ocsp_cert_chain.t
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7054412

Please sign in to comment.