mirror of
https://github.com/mirror/wget.git
synced 2025-01-27 12:50:13 +08:00
Add certs/wotca.pem to avoid temp. file creation
* tests/certs/wotca.pem: New file * tests/Test-https-weboftrust.px: Remove creation of wotca.pem This change let Test-https-weboftrust.px survive VPATH builds.
This commit is contained in:
parent
1068ca07d3
commit
da50a1ecc3
@ -65,26 +65,6 @@ unless(-e $icrtfile && -e $ikeyfile && $icacheck == 1)
|
||||
exit 77; # skip
|
||||
}
|
||||
|
||||
# Now create web of trust - Root CA + Intermediate CA
|
||||
open WOT, ">", "$srcdir/wotca.pem" or
|
||||
die "Cannot overwrite file $srcdir/wotca";
|
||||
open ICA, "<", $icrtfile or die "Cannot read file $icrtfile";
|
||||
while (<ICA>)
|
||||
{
|
||||
print WOT $_;
|
||||
}
|
||||
print WOT "\n";
|
||||
close ICA;
|
||||
open RCA, "<", "$srcdir/certs/test-ca-cert.pem" or
|
||||
die "Cannot read file $srcdir/certs/test-ca-cert.pem";
|
||||
while (<RCA>)
|
||||
{
|
||||
print WOT $_;
|
||||
}
|
||||
print WOT "\n";
|
||||
close RCA;
|
||||
close WOT;
|
||||
|
||||
# User certificate using intermediate CA
|
||||
my $usrcrt = "$srcdir/certs/user.crt";
|
||||
my $usrkey = "$srcdir/certs/user.key";
|
||||
@ -127,7 +107,7 @@ if ($sslsock->run() == 0)
|
||||
|
||||
# Retry the test with --no-check-certificate. expect success
|
||||
$port = 31443;
|
||||
$cmdline = $WgetTest::WGETPATH . " --ca-certificate=$srcdir/wotca.pem".
|
||||
$cmdline = $WgetTest::WGETPATH . " --ca-certificate=$srcdir/certs/wotca.pem".
|
||||
" https://$testhostname:$port/somefile.txt";
|
||||
|
||||
$expected_error_code = 0;
|
||||
|
78
tests/certs/wotca.pem
Normal file
78
tests/certs/wotca.pem
Normal file
@ -0,0 +1,78 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIHOTCCBSGgAwIBAgICESMwDQYJKoZIhvcNAQEFBQAwgZkxCzAJBgNVBAYTAlV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||
Zsm5qHWMk5WkcdavsqpexGDc3VxBYFzqqEjlCTseMgsNZ76FENZeNGNFtKScUHuR
|
||||
J6Fp+pqEZJ9AoQy8WbkDuFjsKs+En3cMvqy4QUqVOFrKg1PKJEWlqvonMs+apzvJ
|
||||
0bjj5Aj2w906XvpKYTnfR6QHJC5ZP5xTorJWLvAwWl0ZuqxQKT0fXKcPeAlE0c4b
|
||||
3eJ5jFXPIFkYt0fJcUnZp6QJv608/METl9x+rTYfRsD6kQGC+281C19PxBacTzxH
|
||||
fAjsesvP7t7pPlh+Chdd7w1QqFg4UUH9NfIkiq06UtIUoQHfCgT1FvXoFoPiRR5f
|
||||
5m67jGE8Sn04nnGhvHnN03kOuwK/VIniLuHdWw0nwLBWIEpzZPbIQQSezoJd7ViY
|
||||
2zBJQCtp1ewEDOXecBL+8CNIUXTiFoOxP/YMuLruoYB5dkLpIFbscHp3dZJMScoz
|
||||
XJQHh68KH0oRm+/FnK3MLxn56nbwoV4uhdIr5FgLglh7PUfUa2wavFjhi3MY50qD
|
||||
SsvoCmBny/N2KJK2tEBIGWbdYy1XBF/l8xaORdT/M4ILYV52Wf2AYy9NTYJxiB0V
|
||||
LwVGbG5plMbJiBFDOZcram4pQrG6k21t2Xv2lkVf1AvOlx4qKfUN04TGWXwu5dAP
|
||||
pnv5yEwOelBLq7Q=
|
||||
-----END CERTIFICATE-----
|
||||
|
Loading…
Reference in New Issue
Block a user