Skip to content

Commit

Permalink
document --ca-roots and --ca-intermediates flags for 'cosign veri…
Browse files Browse the repository at this point in the history
…fy' (#291)

* document --ca-roots flag for 'cosign verify'

Related to sigstore/cosign#3462.
Document the new 'cosign verify' --ca-roots flag and
its difference to the --certificate-chain flag.
List the supported and currently unsupported use cases
(single/multiple CA(s), intermediate CAs).

Signed-off-by: Dmitry S <[email protected]>

* add docs on --ca-intermediates for 'cosign verify'

Signed-off-by: Dmitry S <[email protected]>

---------

Signed-off-by: Dmitry S <[email protected]>
  • Loading branch information
dmitris committed Feb 6, 2024
1 parent eaf6977 commit 64b258f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions content/en/verifying/verify.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,22 @@ $ cosign verify --certificate cosign.crt --certificate-chain chain.crt user/demo
```

## Verify image with user-provided trusted chain

Check failure on line 82 in content/en/verifying/verify.md

View workflow job for this annotation

GitHub Actions / markdownlint

Headings should be surrounded by blank lines

content/en/verifying/verify.md:82 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Verify image with user-provided trusted chain"] https://github.com/DavidAnson/markdownlint/blob/v0.29.0/doc/md022.md
Verify image with the provided certificate chain and identity parameters (intended for
a "bring your own PKI" use case):

Verify image with the provided certificate chain(s) and identity parameters (intended for
"bring your own PKI" use cases).
* with a single certificate chain file - which may contain one or several intermediate
certificates followed by the root CA certificate - use the `--certificate-chain` parameter:
```shell
$ cosign verify --certificate-chain chain.crt --certificate-oidc-issuer https://issuer.example.com --certificate-identity [email protected] user/demo
```
* with a certificate bundle PEM file containing several CA roots and (optionally)
intermediate certificates, use the `--ca-roots` parameter together with `--ca-intermediates`:
```shell
$ cosign verify --ca-roots ca-roots.pem --ca-intermediates ca-intermediates \
--certificate-oidc-issuer https://issuer.example.com \
--certificate-identity [email protected] user/demo
```

The `--ca-roots` and `--ca-intermediates` flags are mutually exclusive with `--certificate-chain`.

## Verify an image on the transparency log

Expand Down

0 comments on commit 64b258f

Please sign in to comment.