## cosign verify-blob Verify a signature on the supplied blob ### Synopsis Verify a signature on the supplied blob input using a Sigstore bundle, provided via --bundle (required). Verify against a public key or KMS reference (--key), a security key (--sk), or, for keyless signatures, a certificate identity and OIDC issuer (--certificate-identity and --certificate-oidc-issuer). A trusted root verifies service-provided material in the bundle (certificates, transparency log entries, and RFC 3161 timestamps). Cosign fetches it from TUF, unless you provide one via --trusted-root. The blob may be specified as a path to a file or - for stdin. ``` cosign verify-blob [flags] ``` ### Examples ``` cosign verify-blob --bundle --certificate-identity --certificate-oidc-issuer # Verify a keyless signature with a bundle and trusted root cosign verify-blob --bundle artifact.sigstore.json --trusted-root trusted_root.json --certificate-identity foo@example.com --certificate-oidc-issuer https://accounts.google.com # Verify a blob (keyless) cosign verify-blob --bundle artifact.sigstore.json --certificate-identity foo@example.com --certificate-oidc-issuer https://accounts.google.com # Verify a blob with an on-disk public key cosign verify-blob --bundle artifact.sigstore.json --key cosign.pub # Verify a blob against Azure Key Vault cosign verify-blob --bundle artifact.sigstore.json --key azurekms://[VAULT_NAME][VAULT_URI]/[KEY] # Verify a blob against AWS KMS cosign verify-blob --bundle artifact.sigstore.json --key awskms://[ENDPOINT]/[ID/ALIAS/ARN] # Verify a blob against Google Cloud KMS cosign verify-blob --bundle artifact.sigstore.json --key gcpkms://projects/[PROJECT ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY] # Verify a blob against Hashicorp Vault cosign verify-blob --bundle artifact.sigstore.json --key hashivault://[KEY] # Verify a blob against GitLab with project name cosign verify-blob --bundle artifact.sigstore.json --key gitlab://[OWNER]/[PROJECT_NAME] # Verify a blob against GitLab with project id cosign verify-blob --bundle artifact.sigstore.json --key gitlab://[PROJECT_ID] ``` ### Options ``` --allow-certificate-chain[=true|false] allow X.509 certificate chains in bundle verification material for v0.3+ bundles --bundle string path to bundle FILE --certificate-github-workflow-name string contains the workflow claim from the GitHub OIDC Identity token that contains the name of the executed workflow. --certificate-github-workflow-ref string contains the ref claim from the GitHub OIDC Identity token that contains the git ref that the workflow run was based upon. --certificate-github-workflow-repository string contains the repository claim from the GitHub OIDC Identity token that contains the repository that the workflow run was based upon --certificate-github-workflow-sha string contains the sha claim from the GitHub OIDC Identity token that contains the commit SHA that the workflow run was based upon. --certificate-github-workflow-trigger string contains the event_name claim from the GitHub OIDC Identity token that contains the name of the event that triggered the workflow run --certificate-identity string The identity expected in a valid Fulcio certificate. Valid values include email address, DNS names, IP addresses, and URIs. Either --certificate-identity or --certificate-identity-regexp must be set for keyless flows. --certificate-identity-regexp string A regular expression alternative to --certificate-identity. Accepts the Go regular expression syntax described at https://golang.org/s/re2syntax. Either --certificate-identity or --certificate-identity-regexp must be set for keyless flows. --certificate-oidc-issuer string The OIDC issuer expected in a valid Fulcio certificate, e.g. https://token.actions.githubusercontent.com or https://oauth2.sigstore.dev/auth. Either --certificate-oidc-issuer or --certificate-oidc-issuer-regexp must be set for keyless flows. --certificate-oidc-issuer-regexp string A regular expression alternative to --certificate-oidc-issuer. Accepts the Go regular expression syntax described at https://golang.org/s/re2syntax. Either --certificate-oidc-issuer or --certificate-oidc-issuer-regexp must be set for keyless flows. -h, --help[=true|false] help for verify-blob --insecure-ignore-sct[=true|false] when set, verification will not check that a certificate contains an embedded SCT, a proof of inclusion in a certificate transparency log --insecure-ignore-tlog[=true|false] ignore transparency log verification, to be used when an artifact signature has not been uploaded to the transparency log. Artifacts cannot be publicly verified when not included in a log --key string path to the public key file, KMS URI or Kubernetes Secret --max-workers int the amount of maximum workers for parallel executions (default 10) --sk[=true|false] whether to use a hardware security key --slot string security key slot to use for generated key (default: signature) (authentication|signature|card-authentication|key-management) --trusted-root string Path to a Sigstore TrustedRoot JSON file --use-signed-timestamps[=true|false] verify rfc3161 timestamps ``` ### Options inherited from parent commands ``` --output-file string log output to a file -t, --timeout duration timeout for commands (default 3m0s) -d, --verbose[=true|false] log debug output ``` ### SEE ALSO * [cosign](cosign.md) - A tool for Container Signing, Verification and Storage in an OCI registry