mirror of
https://github.com/mirror/wget.git
synced 2026-08-19 09:23:27 +08:00
Fix Test-https-badcerts.px
* util/createcerts.sh: Set date of invalid cert to +20 years * tests/certs/invalid.crt: Re-generated * tests/certs/invalid.key: Re-generated
This commit is contained in:
@@ -316,7 +316,7 @@ function create_invalid_cert {
|
||||
local crtfile="${CERTSDIR}/invalid.crt";
|
||||
|
||||
tmpfilelist="${tmpfilelist} ${csrfile}";
|
||||
local sdate=`date +%y%m%d%H%M%SZ --date=tomorrow`;
|
||||
local sdate=`date +%y%m%d%H%M%SZ --date='+20 years'`;
|
||||
generate_key ${keyfile};
|
||||
generate_csr ${keyfile} ${csrfile} "ServerTester";
|
||||
sign_cert ${csrfile} ${crtfile} "ROOT" "-startdate ${sdate}";
|
||||
|
||||
Reference in New Issue
Block a user