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
Error: SignTool SIGN: Password is required with Certificate path but not specified. #1524
Comments
Looking at code it password is currently required by Cake, but as you say you can have passwordless certs. cake/src/Cake.Common/Tools/SignTool/SignToolSignRunner.cs Lines 150 to 155 in 0632cae
if (settings.CertPath != null && string.IsNullOrEmpty(settings.Password))
{
const string format = "{0}: Password is required with Certificate path but not specified.";
var message = string.Format(CultureInfo.InvariantCulture, format, GetToolName());
throw new CakeException(message);
} |
@thomaslevesque is this something you would like to send a PR for? |
Absolutely (in fact I intended to, but only had time to submit the issue). It should be simple enough to fix, so you can probably expect a PR later today. |
Not a problem. This is exactly the correct process 👍 |
@devlead should we class this as a bug fix, and release 0.18.1? |
@gep13 It's been like this since start, so don't think a hotfix is needed - we can ship it with next version, we can push some of the v0.19.0 features to v0.20.0 and release it sooner than later, |
What You Are Seeing?
When I use the
Sign
method with aCertPath
specified but noPassword
,Sign
fails with the following error:What is Expected?
It should sign the file; the certificate I use has no password (it's a self-signed certificate for dev purpose). signtool.exe doesn't enforce a password when using a certificate file.
What version of Cake are you using?
0.18.0
Are you running on a 32 or 64 bit system?
64 bit
What environment are you running on? Windows? Linux? Mac?
Are you running on a CI Server? If so, which one?
No
How Did You Get This To Happen? (Steps to Reproduce)
Output Log
https://gist.github.com/thomaslevesque/79b70af96b15440d363c24f6942debce
The text was updated successfully, but these errors were encountered: