Mercurial > hg > nginx-tests
comparison stream_ssl.t @ 1039:90a0d85436c1
Tests: quoted 'genrsa -out' parameter, no functional changes.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 22 Sep 2016 15:25:25 +0300 |
parents | 882267679006 |
children | 534d209f6ae4 |
comparison
equal
deleted
inserted
replaced
1038:a034903de974 | 1039:90a0d85436c1 |
---|---|
98 | 98 |
99 my $d = $t->testdir(); | 99 my $d = $t->testdir(); |
100 mkfifo("$d/password_fifo", 0700); | 100 mkfifo("$d/password_fifo", 0700); |
101 | 101 |
102 foreach my $name ('localhost', 'inherits') { | 102 foreach my $name ('localhost', 'inherits') { |
103 system("openssl genrsa -out $d/$name.key -passout pass:$name " | 103 system("openssl genrsa -out '$d/$name.key' -passout pass:$name " |
104 . "-aes128 2048 >>$d/openssl.out 2>&1") == 0 | 104 . "-aes128 2048 >>$d/openssl.out 2>&1") == 0 |
105 or die "Can't create private key: $!\n"; | 105 or die "Can't create private key: $!\n"; |
106 system('openssl req -x509 -new ' | 106 system('openssl req -x509 -new ' |
107 . "-config '$d/openssl.conf' -subj '/CN=$name/' " | 107 . "-config '$d/openssl.conf' -subj '/CN=$name/' " |
108 . "-out '$d/$name.crt' " | 108 . "-out '$d/$name.crt' " |