Skip to content

Commit 64b258f

Browse files
authored
document --ca-roots and --ca-intermediates flags for 'cosign verify' (#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]>
1 parent eaf6977 commit 64b258f

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

content/en/verifying/verify.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,22 @@ $ cosign verify --certificate cosign.crt --certificate-chain chain.crt user/demo
8080
```
8181

8282
## Verify image with user-provided trusted chain
83-
Verify image with the provided certificate chain and identity parameters (intended for
84-
a "bring your own PKI" use case):
85-
83+
Verify image with the provided certificate chain(s) and identity parameters (intended for
84+
"bring your own PKI" use cases).
85+
* with a single certificate chain file - which may contain one or several intermediate
86+
certificates followed by the root CA certificate - use the `--certificate-chain` parameter:
8687
```shell
8788
$ cosign verify --certificate-chain chain.crt --certificate-oidc-issuer https://issuer.example.com --certificate-identity [email protected] user/demo
8889
```
90+
* with a certificate bundle PEM file containing several CA roots and (optionally)
91+
intermediate certificates, use the `--ca-roots` parameter together with `--ca-intermediates`:
92+
```shell
93+
$ cosign verify --ca-roots ca-roots.pem --ca-intermediates ca-intermediates \
94+
--certificate-oidc-issuer https://issuer.example.com \
95+
--certificate-identity [email protected] user/demo
96+
```
97+
98+
The `--ca-roots` and `--ca-intermediates` flags are mutually exclusive with `--certificate-chain`.
8999

90100
## Verify an image on the transparency log
91101

0 commit comments

Comments
 (0)