changeset 480:384c05af0ef9

Tests: actually encrypt secret key in ssl_password_file.t.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 27 Oct 2014 16:53:35 +0300
parents b8f10ffa02cd
children 7e823c8f7d31
files ssl_password_file.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ssl_password_file.t
+++ b/ssl_password_file.t
@@ -104,8 +104,8 @@ my $d = $t->testdir();
 mkfifo("$d/password_fifo", 0700);
 
 foreach my $name ('localhost', 'inherits') {
-	system("openssl genrsa -out $d/$name.key -passout pass:$name 2048 "
-		. ">>$d/openssl.out 2>&1") == 0
+	system("openssl genrsa -out $d/$name.key -passout pass:$name "
+		. "-aes128 2048 >>$d/openssl.out 2>&1") == 0
 		or die "Can't create private key: $!\n";
 	system('openssl req -x509 -new '
 		. "-config '$d/openssl.conf' -subj '/CN=$name/' "