mirror of
https://github.com/mirror/wget.git
synced 2025-03-27 20:40:27 +08:00
Move https test server ports from >32767 to <= 32767
* Test-https-badcerts.px: Change port * Test-https-crl.px: Likewise * Test-https-weboftrust.px: Likewise
This commit is contained in:
parent
3132049ae4
commit
b9fb74ddfa
@ -80,7 +80,7 @@ unless(-e $servercrt && -e $serverkey && $servercheck == 1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Try Wget using SSL with expired cert. Expect Failure.
|
# Try Wget using SSL with expired cert. Expect Failure.
|
||||||
my $port = 60443;
|
my $port = 30443;
|
||||||
my $cmdline = $WgetTest::WGETPATH . " --ca-certificate=$cacrt".
|
my $cmdline = $WgetTest::WGETPATH . " --ca-certificate=$cacrt".
|
||||||
" https://$testhostname:$port/somefile.txt";
|
" https://$testhostname:$port/somefile.txt";
|
||||||
my $expected_error_code = 5;
|
my $expected_error_code = 5;
|
||||||
|
@ -81,7 +81,7 @@ unless(-e $servercrt && -e $serverkey && $servercheck == 1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Try Wget using SSL first without --no-check-certificate. Expect Success.
|
# Try Wget using SSL first without --no-check-certificate. Expect Success.
|
||||||
my $port = 62443;
|
my $port = 32443;
|
||||||
my $cmdline = $WgetTest::WGETPATH . " --ca-certificate=$cacrt".
|
my $cmdline = $WgetTest::WGETPATH . " --ca-certificate=$cacrt".
|
||||||
" https://$testhostname:$port/somefile.txt";
|
" https://$testhostname:$port/somefile.txt";
|
||||||
my $expected_error_code = 0;
|
my $expected_error_code = 0;
|
||||||
|
@ -115,7 +115,7 @@ unless(-e $usrcrt && -e $ikeyfile && $usrcheck == 1)
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Try Wget using SSL using certificate signed by intermediate CA. Expect error.
|
# Try Wget using SSL using certificate signed by intermediate CA. Expect error.
|
||||||
my $port = 60443;
|
my $port = 30443;
|
||||||
my $cmdline = $WgetTest::WGETPATH . " --ca-certificate=$cdir/certs/".
|
my $cmdline = $WgetTest::WGETPATH . " --ca-certificate=$cdir/certs/".
|
||||||
"test-ca-cert.pem https://$testhostname:$port/somefile.txt";
|
"test-ca-cert.pem https://$testhostname:$port/somefile.txt";
|
||||||
my $expected_error_code = 5;
|
my $expected_error_code = 5;
|
||||||
@ -142,7 +142,7 @@ if ($sslsock->run() == 0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Retry the test with --no-check-certificate. expect success
|
# Retry the test with --no-check-certificate. expect success
|
||||||
$port = 61443;
|
$port = 31443;
|
||||||
$cmdline = $WgetTest::WGETPATH . " --ca-certificate=$cdir/certs/wotca.pem".
|
$cmdline = $WgetTest::WGETPATH . " --ca-certificate=$cdir/certs/wotca.pem".
|
||||||
" https://$testhostname:$port/somefile.txt";
|
" https://$testhostname:$port/somefile.txt";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user