From 625863cd9b4fa9629843f418ffdfa2f04a268da2 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Mon, 13 Nov 2023 16:34:34 +0200 Subject: [PATCH] templates/public/download.html: update checksum and signature list and verification Link to *sum.txt files on archlinux.org, just like with the GPG signatues, as the mirrors cannot be trusted. Add the GnuPG verification command from https://wiki.archlinux.org/title/Installation_guide#Verify_signature. It would be better if we do not duplicate it in both archweb and the wiki. --- releng/models.py | 3 ++ templates/public/download.html | 58 +++++++++++++++++++++------------- 2 files changed, 39 insertions(+), 22 deletions(-) diff --git a/releng/models.py b/releng/models.py index 8593180a..d018753f 100644 --- a/releng/models.py +++ b/releng/models.py @@ -49,6 +49,9 @@ def iso_url(self): def tarball_url(self): return "iso/%s/archlinux-bootstrap-%s-x86_64.tar.gz" % (self.version, self.version) + def dir_url(self): + return "iso/%s" % (self.version) + def magnet_uri(self): query = [ ('dn', "archlinux-%s-x86_64.iso" % self.version), diff --git a/templates/public/download.html b/templates/public/download.html index f96c0048..0824b200 100644 --- a/templates/public/download.html +++ b/templates/public/download.html @@ -95,35 +95,49 @@

HTTP Direct Downloads

In addition to the BitTorrent links above, install images can also be downloaded via HTTP from the mirror sites listed below. Please - ensure the download image matches the checksum from the sha256sums.txt or - b2sums.txt file in the same directory as the image.

+ ensure the download image matches the checksum from the sha256sums.txt or b2sums.txt file linked below.

-

b2sum -c b2sums.txt

+

Checksums and signatures

+

File integrity checksums and PGP signatures for the latest releases can be found below:

-

The release signing key can be downloaded with WKD:

- -

sq wkd get {{ release.wkd_email }} -o release-key.pgp

+ -

With this key the signature can be verified like this:

+
Download verification
-

sq verify --signer-file release-key.pgp --detached archlinux-{{ release.version }}-x86_64.iso.sig archlinux-{{ release.version }}-x86_64.iso

+

Verify the BLAKE2b checksums as follows:

$ b2sum -c b2sums.txt

-

Checksums

+

To verify the PGP signature using Sequoia, first download the release signing key from WKD:
+

$ sq wkd get {{ release.wkd_email }} -o release-key.pgp
-

File integrity checksums for the latest releases can be found below:

+ With this signing key, verify the signature: +
$ sq verify --signer-file release-key.pgp --detached archlinux-{{ release.version }}-x86_64.iso.sig archlinux-{{ release.version }}-x86_64.iso

- +

Alternatively, using GnuPG, download the signing key from WKD: +

$ gpg --auto-key-locate clear,wkd -v --locate-external-key {{ release.wkd_email }}
+ Verify the signature: +
$ gpg --keyserver-options auto-key-retrieve --verify archlinux-{{ release.version }}-x86_64.iso.sig archlinux-{{ release.version }}-x86_64.iso

{% cache 600 download-mirrors %}