Mercurial > hg > nginx-tests
comparison proxy_ssl_certificate.t @ 1140:778eae8230e4
Tests: reduced OpenSSL default key length to 1024.
This allows to speed up ssl tests.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Wed, 01 Mar 2017 19:15:39 +0300 |
parents | 1b11a12be179 |
children | 0af58b78df35 |
comparison
equal
deleted
inserted
replaced
1139:e7e968e3eb74 | 1140:778eae8230e4 |
---|---|
116 or die "Can't create certificate for $name: $!\n"; | 116 or die "Can't create certificate for $name: $!\n"; |
117 } | 117 } |
118 | 118 |
119 foreach my $name ('3.example.com') { | 119 foreach my $name ('3.example.com') { |
120 system("openssl genrsa -out '$d/$name.key' -passout pass:$name " | 120 system("openssl genrsa -out '$d/$name.key' -passout pass:$name " |
121 . "-aes128 2048 >>$d/openssl.out 2>&1") == 0 | 121 . "-aes128 1024 >>$d/openssl.out 2>&1") == 0 |
122 or die "Can't create private key: $!\n"; | 122 or die "Can't create private key: $!\n"; |
123 system('openssl req -x509 -new ' | 123 system('openssl req -x509 -new ' |
124 . "-config '$d/openssl.conf' -subj '/CN=$name/' " | 124 . "-config '$d/openssl.conf' -subj '/CN=$name/' " |
125 . "-out '$d/$name.crt' " | 125 . "-out '$d/$name.crt' " |
126 . "-key '$d/$name.key' -passin pass:$name" | 126 . "-key '$d/$name.key' -passin pass:$name" |