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

BUG issue signing with LUNA HSM #3977

Open
compemperor opened this issue Dec 17, 2024 · 0 comments
Open

BUG issue signing with LUNA HSM #3977

compemperor opened this issue Dec 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@compemperor
Copy link

Description
Issues when signing with PKCS11, the private key is stored in SafeNet LUNA HSM.

The command issued (the URL is provided by cosign pkcs11-tool list-keys-uris):

cosign.exe sign --key 'pkcs11:token=HSM1;slot-id=0;id=%00%00%00%00;label=S-133789635?module-path=C:%5c%5cProgram%20Files%5c%5cSafeNet%5c%5cLunaClient%5c%5ccryptoki.dll&pin-value=1234' myreg.net/total/docu:1.0

Error: signing [myreg.net/total/docu:1.0]: getting signer: reading key: initializing pkcs11 token signer verifier: signer not set
main.go:74: error during command execution: signing [myreg.net/total/docu:1.0]: getting signer: reading key: initializing pkcs11 token signer verifier: signer not set

Version
GitVersion: v2.4.1
GitCommit: 9a4cfe1
GitTreeState: clean
BuildDate: 2024-10-03T17:01:50Z
GoVersion: go1.22.7
Compiler: gc
Platform: windows/amd64

@compemperor compemperor added the bug Something isn't working label Dec 17, 2024
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

No branches or pull requests

1 participant