Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add remote url example for verify_blog cmd #640

Merged
merged 1 commit into from
Sep 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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