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.
Before you begin
- 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
cosign binary 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.pem file:
$ curl https://REKOR_HOSTNAME/api/v1/log/publicKey > rekor.pem
-
Create a new cosign public key from the Red Hat product signing key:
$ cat 63405576.txt > cosign.pub
-
Configure your shell environment for cosign to use the new Rekor public key:
$ export SIGSTORE_REKOR_PUBLIC_KEY=rekor.pem
-
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 registry.redhat.io/rhelai1/granite-3.1-8b-starter-v1:latest