Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 426 Bytes

File metadata and controls

16 lines (14 loc) · 426 Bytes

This example shows how to verify a blob, using a bundle that was created by the cosign sign-blob command.

Sign README.md file using cosign

cd examples/cosign/verify-bundle
cosign sign-blob --bundle=artifact.bundle README.md

Verify using sigstore-rs:

cargo run --example verify-bundle -- \
    --rekor-pub-key ~/.sigstore/root/targets/rekor.pub \
    --bundle artifact.bundle \
    README.md