fxgn.
10/15/2024, 1:08 PMrpm-ostree upgrade, I get the following error:
error: Creating importer: Failed to invoke skopeo proxy method OpenImage: remote error: cryptographic signature verification failed: invalid signature when validating ASN.1 encoded signatureAnswer Overflow
10/15/2024, 1:08 PMgmpinder
10/15/2024, 1:23 PMgmpinder
10/15/2024, 1:24 PMrpm-ostree rebase ostree-unverified-image:docker://image.path/to/your/image and then back again with rpm-ostree rebase ostree-image-signed:docker://....fiftydinar
10/15/2024, 2:11 PMfiftydinar
10/15/2024, 2:12 PM/etc/pki/containers/$your_image_name.pub
sudo cp your-cosign.pub /etc/pki/containers/$your_image_name.pub
Modify /etc/containers/policy.json, locate your image registry link, in keyPath edit location to be from /usr/etc to /etc
"keyPath": "/etc/pki/containers/$your_image_name.pub"
Run rpm-ostree upgrade & reboot
Copy new policy.json
sudo cp /usr/etc/containers/policy.json /etc/containers/policy.json
Profit
You can verify if new cosign & policy.json is used here. If they're not listed, then you're good. This command tracks changed files in /etc compared to /usr/etc
sudo ostree admin config-difffxgn.
10/16/2024, 6:44 AMfiftydinar
10/16/2024, 11:43 AMModify /etc/containers/policy.json, locate your image registry link, in keyPath edit location to be from /usr/etc to /etcfiftydinar
10/16/2024, 11:43 AMkeyPath should point to /etc/ by default now