-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #408 from jku/polish-cosign-verify-bundle-example
Simplify cosign verify-bundle example
- Loading branch information
Showing
2 changed files
with
7 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
This example shows how to verify a blob, using a bundle that was created by the | ||
`cosign sign-blob` command. | ||
|
||
### Create the artifact to be signed. | ||
```console | ||
cd examples/cosign/verify-bundle | ||
echo something > artifact.txt | ||
### Sign README.md file using cosign | ||
``` | ||
|
||
### Sign the artifact.txt file using cosign | ||
``` | ||
cosign sign-blob --bundle=artifact.bundle artifact.txt | ||
cd examples/cosign/verify-bundle | ||
cosign sign-blob --bundle=artifact.bundle README.md | ||
``` | ||
|
||
### Verify using sigstore-rs: | ||
```console | ||
cargo run --example verify-bundle -- \ | ||
--rekor-pub-key ~/.sigstore/root/targets/rekor.pub \ | ||
--bundle artifact.bundle \ | ||
artifact.txt | ||
README.md | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters