forked from sigstore/cosign
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for cert and cert chain flags with PKCS11 tokens (sigstor…
…e#1671) Currently, Cosign attempts to automatically extract the certificate from the PKCS11 token, and there's no option to provide your own certificate chain or different certificate. Now, Cosign will respect those flags. Note that the chain must be valid, and the public key from the token must match the provided certificate from either the token or flag. Note that if a cert flag is specified, it will override the certificate fetched from the PKCS11 token if one is present, and log a warning. Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
- Loading branch information
1 parent
ccbcfb3
commit c6191d7
Showing
2 changed files
with
64 additions
and
57 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
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