Mercurial > hg > nginx-tests
diff ssl_crl.t @ 1220:0af58b78df35
Tests: removed single quotes from system() calls.
Single quotes were used to escape paths with spaces but are neither supported
in the Windows CMD shell, nor sufficient without proper %%TESTDIR%% expansion.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 20 Sep 2017 14:46:51 +0300 |
parents | 97a6cb846926 |
children | 8c764fd93b5e |
line wrap: on
line diff
--- a/ssl_crl.t Mon Sep 11 20:06:15 2017 +0300 +++ b/ssl_crl.t Wed Sep 20 14:46:51 2017 +0300 @@ -105,16 +105,16 @@ foreach my $name ('root', 'localhost') { system('openssl req -x509 -new ' - . "-config '$d/openssl.conf' -subj '/CN=$name/' " - . "-out '$d/$name.crt' -keyout '$d/$name.key' " + . "-config $d/openssl.conf -subj /CN=$name/ " + . "-out $d/$name.crt -keyout $d/$name.key " . ">>$d/openssl.out 2>&1") == 0 or die "Can't create certificate for $name: $!\n"; } foreach my $name ('int', 'end') { system("openssl req -new " - . "-config '$d/openssl.conf' -subj '/CN=$name/' " - . "-out '$d/$name.csr' -keyout '$d/$name.key' " + . "-config $d/openssl.conf -subj /CN=$name/ " + . "-out $d/$name.csr -keyout $d/$name.key " . ">>$d/openssl.out 2>&1") == 0 or die "Can't create certificate for $name: $!\n"; } @@ -122,32 +122,32 @@ $t->write_file('certserial', '1000'); $t->write_file('certindex', ''); -system("openssl ca -batch -config '$d/ca.conf' " - . "-keyfile '$d/root.key' -cert '$d/root.crt' " - . "-subj '/CN=int/' -in '$d/int.csr' -out '$d/int.crt' " +system("openssl ca -batch -config $d/ca.conf " + . "-keyfile $d/root.key -cert $d/root.crt " + . "-subj /CN=int/ -in $d/int.csr -out $d/int.crt " . ">>$d/openssl.out 2>&1") == 0 or die "Can't sign certificate for int: $!\n"; -system("openssl ca -batch -config '$d/ca.conf' " - . "-keyfile '$d/int.key' -cert '$d/int.crt' " - . "-subj '/CN=end/' -in '$d/end.csr' -out '$d/end.crt' " +system("openssl ca -batch -config $d/ca.conf " + . "-keyfile $d/int.key -cert $d/int.crt " + . "-subj /CN=end/ -in $d/end.csr -out $d/end.crt " . ">>$d/openssl.out 2>&1") == 0 or die "Can't sign certificate for end: $!\n"; -system("openssl ca -gencrl -config '$d/ca.conf' " - . "-keyfile '$d/root.key' -cert '$d/root.crt' " - . "-out '$d/empty.crl' -crldays 1 " +system("openssl ca -gencrl -config $d/ca.conf " + . "-keyfile $d/root.key -cert $d/root.crt " + . "-out $d/empty.crl -crldays 1 " . ">>$d/openssl.out 2>&1") == 0 or die "Can't create empty crl: $!\n"; -system("openssl ca -config '$d/ca.conf' -revoke '$d/int.crt' " - . "-keyfile '$d/root.key' -cert '$d/root.crt' " +system("openssl ca -config $d/ca.conf -revoke $d/int.crt " + . "-keyfile $d/root.key -cert $d/root.crt " . ">>$d/openssl.out 2>&1") == 0 or die "Can't revoke int.crt: $!\n"; -system("openssl ca -gencrl -config '$d/ca.conf' " - . "-keyfile '$d/root.key' -cert '$d/root.crt' " - . "-out '$d/root.crl' -crldays 1 " +system("openssl ca -gencrl -config $d/ca.conf " + . "-keyfile $d/root.key -cert $d/root.crt " + . "-out $d/root.crl -crldays 1 " . ">>$d/openssl.out 2>&1") == 0 or die "Can't update crl: $!\n";