Questo contenuto non è disponibile nella lingua selezionata.
Chapter 4. Verifying Red Hat signatures
You can use Red Hat Trusted Artifact Signer (RHTAS) to verify the authenticity of Red Hat’s products, and artificial intelligence (AI) generated Granite models.
Prerequisites
- Installation of RHTAS running on Red Hat Enterprise Linux or Red Hat OpenShift Container Platform.
- Access to the Red Hat’s Customer Portal for downloading product signing keys.
-
A workstation with the
cosignbinary installed, version 2.2 or later.
Procedure
- Download Red Hat’s product signing keys from the Customer Portal for the products you want to verify. This downloads a text file containing Red Hat’s public key signature.
Open a terminal on your workstation. Download the Rekor public key, and create a new
rekor.pemfile:curl https://REKOR_HOSTNAME/api/v1/log/publicKey > rekor.pem
$ curl https://REKOR_HOSTNAME/api/v1/log/publicKey > rekor.pemCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create a new cosign public key from the Red Hat product signing key:
cat 63405576.txt > cosign.pub
$ cat 63405576.txt > cosign.pubCopy to Clipboard Copied! Toggle word wrap Toggle overflow Configure your shell environment for cosign to use the new Rekor public key:
export SIGSTORE_REKOR_PUBLIC_KEY=rekor.pem
$ export SIGSTORE_REKOR_PUBLIC_KEY=rekor.pemCopy to Clipboard Copied! Toggle word wrap Toggle overflow Verify a Red Hat signed image by using the cosign public key:
cosign verify --key cosign.pub IMAGE_NAME:TAG
cosign verify --key cosign.pub IMAGE_NAME:TAGCopy to Clipboard Copied! Toggle word wrap Toggle overflow cosign verify --key cosign.pub registry.redhat.io/rhelai1/granite-3.1-8b-starter-v1:latest
$ cosign verify --key cosign.pub registry.redhat.io/rhelai1/granite-3.1-8b-starter-v1:latestCopy to Clipboard Copied! Toggle word wrap Toggle overflow