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

Question: How to use certificate with password? #82

Closed
YanVugenfirer opened this issue Mar 12, 2024 · 2 comments
Closed

Question: How to use certificate with password? #82

YanVugenfirer opened this issue Mar 12, 2024 · 2 comments

Comments

@YanVugenfirer
Copy link

I tried to use this tool to sign SBOM for our driver package with PFX certificate with password and got error.

>"H:\Program Files\Windows Kits\10\Tools\10.0.26063.0\x64\CoseSignTool.exe" sign /PayloadFile NetKVM.sbom.json /PfxCertificate VirtIOTestCertPass.pfx
COSE Sign failed.
The specified network password is not correct.

If I try to use a certificate without a password, everything works.
How should I specify the password for the certificate? How can I use this tool to sign SBOM with an EV Code Signing token certificate?

Best regards

@YanVugenfirer YanVugenfirer changed the title estion: How to use certificate with password? Question: How to use certificate with password? Mar 12, 2024
@elantiguamsft
Copy link
Contributor

Hi Yan! Excited to hear about your interest in CoseSignTool :) The correct usage here would be to add /Password:<password> to your command. You can find additional documentation in CoseSignTool.md. In the future, we will be giving users the option to be prompted for passwords at runtime so we can consume it as a secure string. Closing this issue and opening #84 to track that work.

@YanVugenfirer
Copy link
Author

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants