Add static HOSTSALIAS file

* tests/certs/wgethosts: New file
* tests/Test-https-*.px: Remove creation of wgethosts file
This commit is contained in:
Tim Rühsen
2017-05-04 16:42:49 +02:00
parent 2a96249469
commit 5c4cc011fe
8 changed files with 10 additions and 37 deletions

View File

@@ -30,11 +30,7 @@ my $cdir = $ENV{'PWD'};
# HOSTALIASES env variable allows us to create hosts file alias.
my $testhostname = "WgetTestingServer";
my $testhostfile = "$cdir/wgethosts";
open(my $fh, '>', $testhostfile);
print $fh "$testhostname 127.0.0.1\n";
close $fh;
$ENV{'HOSTALIASES'} = "$cdir/wgethosts";
$ENV{'HOSTALIASES'} = "$cdir/certs/wgethosts";
# Create certindex
open CERTID, ">", "$cdir/certs/certindex" or
@@ -78,7 +74,7 @@ unless(-e $servercrt && -e $serverkey && $servercheck == 1)
exit 77; # skip
}
# Prepare client certifcate
# Prepare client certificate
my $clientcert = "$cdir/certs/client.crt";
my $clientkey = "$cdir/certs/client.key";
my $clientcsr = "$cdir/certs/client.csr";