-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add docs on --ca-intermediates for 'cosign verify'
Signed-off-by: Dmitry S <[email protected]>
- Loading branch information
Showing
1 changed file
with
6 additions
and
9 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 |
---|---|---|
|
@@ -87,18 +87,15 @@ certificates followed by the root CA certificate - use the `--certificate-chain` | |
```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 (but without | ||
intermediate certificate), use the `--ca-roots` parameter: | ||
* 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 --certificate-oidc-issuer https://issuer.example.com --certificate-identity [email protected] user/demo | ||
$ 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 `--certificate-chain` flags are mutually exclusive. | ||
|
||
Note that the hypothetical use case of "multiple chains with multiple CA roots and intermediate | ||
certificates" is not yet supported. There are plans to add the `--ca-intermediates` parameter | ||
(see [issue #3462](https://github.com/sigstore/cosign/issues/3462)). If you need this, | ||
please open an issue and mention it on the Sigstore #cosign Slack. | ||
The `--ca-roots` and `--ca-intermediates` flags are mutually exclusive with `--certificate-chain`. | ||
|
||
## Verify an image on the transparency log | ||
|
||
|