Skip to content

Commit

Permalink
docs: add remote url example for verify_blog cmd (#640)
Browse files Browse the repository at this point in the history
Signed-off-by: Erkan Zileli <erkan.zileli@trendyol.com>
  • Loading branch information
erkanzileli committed Sep 9, 2021
1 parent 248f849 commit 6d2fc54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/cosign/cli/verify_blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func VerifyBlob() *ffcli.Command {
slot = flagset.String("slot", "", "security key slot to use for generated key (default: signature) (authentication|signature|card-authentication|key-management)")
rekorURL = flagset.String("rekor-url", "https://rekor.sigstore.dev", "[EXPERIMENTAL] address of rekor STL server")
cert = flagset.String("cert", "", "path to the public certificate")
signature = flagset.String("signature", "", "path to the signature")
signature = flagset.String("signature", "", "signature content or path or remote URL")
)
return &ffcli.Command{
Name: "verify-blob",
Expand All @@ -67,6 +67,9 @@ EXAMPLES
# Verify a simple blob and message
cosign verify-blob -key cosign.pub -signature sig msg
# Verify a simple blob with remote signature URL, both http and https schemes are supported
cosign verify-blob -key cosign.pub -signature http://host/my.sig
# Verify a signature from an environment variable
cosign verify-blob -key cosign.pub -signature $sig msg
Expand Down

0 comments on commit 6d2fc54

Please sign in to comment.