Examples (8)
Generate a key-pair
cosign generate-key-pairSign a container and store the signature in the registry
cosign sign --key cosign.key imageSign a container image with a key pair stored in a Kubernetes secret
cosign sign --key k8s://namespace/key imageSign a blob with a local key pair file
cosign sign-blob --key cosign.key path/to/fileVerify a container against a public key
cosign verify --key cosign.pub imageVerify images with a public key in a Dockerfile
cosign dockerfile verify -key cosign.pub path/to/DockerfileVerify an image with a public key stored in a Kubernetes secret
cosign verify --key k8s://namespace/key imageCopy a container image and its signatures
cosign copy example.com/src:latest example.com/dest:latestmade by @shridhargupta | data from tldr-pages