Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cosign verify with certificates requires the --certificate-identity and --certificate-oidc-issuer flags #3671

Closed
dhaus67 opened this issue Apr 21, 2024 · 2 comments · Fixed by sigstore/docs#306
Labels
bug Something isn't working

Comments

@dhaus67
Copy link

dhaus67 commented Apr 21, 2024

Description

When following the documentation for verifying signatures locally with certificates the mentioned command is:

$ cosign verify --certificate cosign.crt --certificate-chain chain.crt user/demo

However, when executing this locally you'll get:

Error: --certificate-identity or --certificate-identity-regexp is required for verification in keyless mode

Given that the validation option has been the same for quite a while, I'm assuming it's just a documentation issue; but wanted to check in here first before creating an issue in the docs repo.

Version

cosign: A tool for Container Signing, Verification and Storage in an OCI registry.

GitVersion:    2.2.4
GitCommit:     fb651b4ddd8176bd81756fca2d988dd8611f514d
GitTreeState:  "clean"
BuildDate:     2024-04-10T21:57:27Z
GoVersion:     go1.22.2
Compiler:      gc
Platform:      darwin/amd64
@dhaus67 dhaus67 added the bug Something isn't working label Apr 21, 2024
@haydentherapper
Copy link
Contributor

Yes, that is a documentation issue, you'll see it correctly documented in https://docs.sigstore.dev/verifying/verify/#keyless-verification-using-openid-connect. Do you want to make the fix in https://github.com/sigstore/docs?

@dhaus67
Copy link
Author

dhaus67 commented Apr 22, 2024

@haydentherapper yeah will go ahead and to that in a giffy, thanks for clarifying things!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants