LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

apptainer-verify

Verify cryptographic signatures on container images

TLDR

Check an image's signature against the local keyring
$ apptainer verify [path/to/image.sif]
copy
Check it against one public key file
$ apptainer verify --key [path/to/public.pem] [path/to/image.sif]
copy
Check an X.509 certificate signature instead of PGP
$ apptainer verify --certificate [path/to/certificate.pem] [path/to/image.sif]
copy
Supply the root certificates the chain must lead back to
$ apptainer verify --certificate [path/to/cert.pem] --certificate-roots [path/to/roots.pem] [path/to/image.sif]
copy
Ask the CA whether the certificate has been revoked
$ apptainer verify --certificate [path/to/cert.pem] --ocsp-verify [path/to/image.sif]
copy
Check every signed object, not just the primary one
$ apptainer verify --all [path/to/image.sif]
copy
Check one object group
$ apptainer verify --group-id [1] [path/to/image.sif]
copy
Check a single object by its SIF id
$ apptainer verify --sif-id [3] [path/to/image.sif]
copy
Report the result as JSON
$ apptainer verify --json [path/to/image.sif]
copy
Use only local keys, never contacting a keyserver
$ apptainer verify --local [path/to/image.sif]
copy
Accept the old signature format, which is not secure
$ apptainer verify --legacy-insecure [path/to/image.sif]
copy

SYNOPSIS

apptainer verify [options] image.sif

DESCRIPTION

apptainer verify validates the cryptographic signatures on SIF container images. This confirms that the image has not been tampered with and was signed by a trusted party.Verification can use PGP public keys, X.509 certificates, or keys fetched from a keyserver. The command exits with a non-zero status if verification fails.

PARAMETERS

--key file

Path to a public key file for verification
--certificate file
Path to a certificate file for verification
-a, --all
Verify all objects in the SIF image
-g, --group-id id
Verify only a specific object group
-i, --sif-id id
Verify only a specific object by ID
-j, --json
Output results in JSON format
-l, --local
Only verify with local key(s) in keyring
-u, --url string
Specify a URL for a key server
--legacy-insecure
Enable verification of (insecure) legacy signatures
--certificate-intermediates file
Path to pool of intermediate certificates
--certificate-roots file
Path to pool of root certificates
--ocsp-verify
Enable online revocation check for certificates

INSTALL

sudo dnf install apptainer
copy
sudo pacman -S apptainer
copy
sudo apk add apptainer
copy
sudo zypper install apptainer
copy
brew install apptainer
copy
nix profile install nixpkgs#apptainer
copy

CAVEATS

Verification requires the public key or certificate corresponding to the signing key. Unsigned containers will fail verification. Keys from untrusted sources should not be used for verification.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid