From 0c09c1371e9376d86847bc36eb5fc1e32c4a28f5 Mon Sep 17 00:00:00 2001 From: Erkan Zileli Date: Thu, 9 Sep 2021 10:42:24 +0300 Subject: [PATCH] docs: add remote url example for verify_blog cmd --- cmd/cosign/cli/verify_blob.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/cosign/cli/verify_blob.go b/cmd/cosign/cli/verify_blob.go index fbad0cd89272..36bc812d6f0f 100644 --- a/cmd/cosign/cli/verify_blob.go +++ b/cmd/cosign/cli/verify_blob.go @@ -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", @@ -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