mirror of
https://github.com/openssl/openssl.git
synced 2024-12-03 05:41:46 +08:00
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:
parent
933f57dfe2
commit
7054412ea8
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user