Mercurial > hg > nginx-tests
comparison ssl_password_file.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 |
---|---|
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 2048 >>$d/openssl.out 2>&1") == 0 | 106 . "-aes128 2048 >>$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' " |