comparison stream_ssl.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 ba3279915da5
children dbce8fb5f5f8
comparison
equal deleted inserted replaced
1219:f373a718f646 1220:0af58b78df35
100 100
101 my $d = $t->testdir(); 101 my $d = $t->testdir();
102 mkfifo("$d/password_fifo", 0700); 102 mkfifo("$d/password_fifo", 0700);
103 103
104 foreach my $name ('localhost', 'inherits') { 104 foreach my $name ('localhost', 'inherits') {
105 system("openssl genrsa -out '$d/$name.key' -passout pass:$name " 105 system("openssl genrsa -out $d/$name.key -passout pass:$name "
106 . "-aes128 1024 >>$d/openssl.out 2>&1") == 0 106 . "-aes128 1024 >>$d/openssl.out 2>&1") == 0
107 or die "Can't create private key: $!\n"; 107 or die "Can't create private key: $!\n";
108 system('openssl req -x509 -new ' 108 system('openssl req -x509 -new '
109 . "-config '$d/openssl.conf' -subj '/CN=$name/' " 109 . "-config $d/openssl.conf -subj /CN=$name/ "
110 . "-out '$d/$name.crt' " 110 . "-out $d/$name.crt "
111 . "-key '$d/$name.key' -passin pass:$name" 111 . "-key $d/$name.key -passin pass:$name"
112 . ">>$d/openssl.out 2>&1") == 0 112 . ">>$d/openssl.out 2>&1") == 0
113 or die "Can't create certificate for $name: $!\n"; 113 or die "Can't create certificate for $name: $!\n";
114 } 114 }
115 115
116 116