-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
Add --ca-intermediates flag to enable to pass a PEM file with intermediate CA certificates. One can use either --ca-roots, optionally together with --ca-intermediates - or --certificate-chain, which contains zero, one or several intermediate CA certificate followed by the root CA certificate. Expand the helper Go program test/gencert/main.go to allow to generate root and intermediate CA certificates, and a certificate signed by the intermediate CA. Expand the functional test e2e_tsa_certbundle.sh to test the --ca-intermediates flag (together with --ca-roots). Fixed #3462. Signed-off-by: Dmitry S <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,10 @@ against the transparency log.`, | |
# verify image with local certificate and certificate chain | ||
cosign verify --cert cosign.crt --cert-chain chain.crt <IMAGE> | ||
# verify image with local certificate and certificate bundles of CA roots | ||
# and (optionally) CA intermediates | ||
cosign verify --cert cosign.crt --ca-roots ca-roots.pem --ca-intermediates ca-intermediates.pem <IMAGE> | ||
# verify image using keyless verification with the given certificate | ||
# chain and identity parameters, without Fulcio roots (for BYO PKI): | ||
cosign verify --cert-chain chain.crt --certificate-oidc-issuer https://issuer.example.com --certificate-identity [email protected] <IMAGE> | ||
|
@@ -115,6 +119,7 @@ against the transparency log.`, | |
CertGithubWorkflowName: o.CertVerify.CertGithubWorkflowName, | ||
CertGithubWorkflowRepository: o.CertVerify.CertGithubWorkflowRepository, | ||
CertGithubWorkflowRef: o.CertVerify.CertGithubWorkflowRef, | ||
CAIntermediates: o.CertVerify.CAIntermediates, | ||
CARoots: o.CertVerify.CARoots, | ||
CertChain: o.CertVerify.CertChain, | ||
IgnoreSCT: o.CertVerify.IgnoreSCT, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.