diff 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 e7e968e3eb74
children 766bcbb632ee
line wrap: on
line diff
--- a/ssl.t
+++ b/ssl.t
@@ -161,27 +161,27 @@ EOF
 $t->write_file('certindex', '');
 
 system('openssl req -x509 -new '
-	. "-config '$d/openssl.conf' -subj '/CN=issuer/' "
-	. "-out '$d/issuer.crt' -keyout '$d/issuer.key' "
+	. "-config $d/openssl.conf -subj /CN=issuer/ "
+	. "-out $d/issuer.crt -keyout $d/issuer.key "
 	. ">>$d/openssl.out 2>&1") == 0
 	or die "Can't create certificate for issuer: $!\n";
 
 system("openssl req -new "
-	. "-config '$d/openssl.conf' -subj '/CN=subject/' "
-	. "-out '$d/subject.csr' -keyout '$d/subject.key' "
+	. "-config $d/openssl.conf -subj /CN=subject/ "
+	. "-out $d/subject.csr -keyout $d/subject.key "
 	. ">>$d/openssl.out 2>&1") == 0
 	or die "Can't create certificate for subject: $!\n";
 
-system("openssl ca -batch -config '$d/ca.conf' "
-	. "-keyfile '$d/issuer.key' -cert '$d/issuer.crt' "
-	. "-subj '/CN=subject/' -in '$d/subject.csr' -out '$d/subject.crt' "
+system("openssl ca -batch -config $d/ca.conf "
+	. "-keyfile $d/issuer.key -cert $d/issuer.crt "
+	. "-subj /CN=subject/ -in $d/subject.csr -out $d/subject.crt "
 	. ">>$d/openssl.out 2>&1") == 0
 	or die "Can't sign certificate for subject: $!\n";
 
 foreach my $name ('localhost', 'inner') {
 	system('openssl req -x509 -new '
-		. "-config '$d/openssl.conf' -subj '/CN=$name/' "
-		. "-out '$d/$name.crt' -keyout '$d/$name.key' "
+		. "-config $d/openssl.conf -subj /CN=$name/ "
+		. "-out $d/$name.crt -keyout $d/$name.key "
 		. ">>$d/openssl.out 2>&1") == 0
 		or die "Can't create certificate for $name: $!\n";
 }