diff options
| author | Julian Andres Klode <jak@debian.org> | 2025-04-25 21:08:05 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2025-04-25 21:08:05 +0000 |
| commit | fd4ebe70225d6e2f9993514553bac7aa9eb1df7e (patch) | |
| tree | 95190a341e6861d216bf45c2e45eb301f6c531da /test | |
| parent | ccd3b00975f96a62835e02cd243f624d47812b56 (diff) | |
| parent | 85c435f23718e168345ea60270b24a57061b54f4 (diff) | |
Merge branch 'policy-as-of' into 'main'
Update Sequoia crypto policy, implement year-ahead warning
See merge request apt-team/apt!475
Diffstat (limited to 'test')
| -rwxr-xr-x | test/integration/test-releasefile-verification | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/test-releasefile-verification b/test/integration/test-releasefile-verification index 1e54cf0d5..e15752482 100755 --- a/test/integration/test-releasefile-verification +++ b/test/integration/test-releasefile-verification @@ -374,6 +374,16 @@ Signed-By: ${SEBASTIAN}" rootdir/var/lib/apt/lists/*Release " aptcache show apt installaptnew + if test -e "${METHODSDIR}/sqv"; then + msgmsg 'Warm archive with ahead-policy-rejected subkey signing' 'Sebastian Subkey' + cat > sequoia.config << EOF +[asymmetric_algorithms] +rsa3072 = $(date +%Y-%m-%d --date="now + 6 months") +EOF + APT_SEQUOIA_CRYPTO_POLICY=$PWD/sequoia.config updatewithwarnings "W: http://localhost:${APTHTTPPORT}/Release.gpg: Policy will reject signature within a year, see --audit for details" + exit + fi + msgmsg 'Warm archive with wrong exact subkey signing' 'Sebastian Subkey' rm -rf rootdir/var/lib/apt/lists cp -a rootdir/var/lib/apt/lists-bak rootdir/var/lib/apt/lists |
