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

Certificate password can be null #387

Closed
biasso opened this issue Jun 5, 2018 · 9 comments
Closed

Certificate password can be null #387

biasso opened this issue Jun 5, 2018 · 9 comments

Comments

@biasso
Copy link

biasso commented Jun 5, 2018

Hi Oleg,
with commit 281567b an ArgumentNullException is thrown using the following code:

project.DigitalSignature = new DigitalSignature()
{
    UseCertificateStore = true,
    PfxFilePath = "My certificate name",
    OptionalArguments = "/a /s MY /fd sha256 /tr \"http://sha256timestamp.ws.symantec.com/sha256/timestamp\"",
    Description = "My description"
};

The password variable can be null.

ConsoleOut = (line) => Compiler.OutputWriteLine(line.Replace(password, "***"))

@oleg-shilo
Copy link
Owner

You are absolutely right. I was not aware that password is optional.

Do you need a HotFix release or you prefer to wait for the normal release?

@dviry
Copy link

dviry commented Jun 6, 2018

I am hitting the same issue, tried to solve it with password=string.Empty but for some reason it does not work.
So yes, I personally would appreciate a HotFix NuGet....

Thanks

@biasso
Copy link
Author

biasso commented Jun 6, 2018

I can wait for the normal release.
For now I downgraded to version 1.6.5.0 where the digital signature works correctly.

oleg-shilo added a commit that referenced this issue Jun 6, 2018
* Issue #387: Certificate password can be null
@oleg-shilo
Copy link
Owner

Done:

Install-Package WixSharp -Version 1.6.5.2-HotFix 

@dviry
Copy link

dviry commented Jun 6, 2018

PM> Install-Package WixSharp -Version 1.6.5.2-HotFix

Attempting to gather dependency information for package 'WixSharp.1.6.5.2-HotFix'
Gathering dependency information took 951,9 ms
Attempting to resolve dependencies for package 'WixSharp.1.6.5.2-HotFix' with DependencyBehavior 'Lowest'
Install-Package : Unable to find a version of 'WixSharp.bin' that is compatible with 'WixSharp 1.6.5.2-HotFix constraint: WixSharp.bin (>= 1.6.5.2)'.
At line:1 char:1

  • Install-Package WixSharp -Version 1.6.5.2-HotFix
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    
    

@oleg-shilo
Copy link
Owner

Give it another try. May be NuGet was not ready yet. The package is there: https://www.nuget.org/packages/WixSharp/1.6.5.2-HotFix

image

@dviry
Copy link

dviry commented Jun 6, 2018

yes but shouldn't the dependency in WixSharp.nuspec also point to 1.6.5.2-HotFix instead of this?

    <dependencies>
        <dependency id="WixSharp.bin" version="1.6.5.2" />
    </dependencies>

edit: since WixSharp.bin 1.6.5.2 does not actually exists (only WixSharp.bin 1.6.5.2-Hotfix, as the error message states)

@oleg-shilo
Copy link
Owner

:( Yes . My mistake.
Incrementing the version now...

@oleg-shilo
Copy link
Owner

Should be OK now

Install-Package WixSharp -Version 1.6.5.3-HotFix 

oleg-shilo added a commit that referenced this issue Jun 16, 2018
* Implemented NSIS-based bootstrapper.
* Issue #387: Certificate password can be null
* Issue #377: How to register a new MIME type with custom document icon
* Issue #373: Bootstrapper.DigitalSignature.Apply hide console output
* Added missing IconFile support
* SetupEvent sample extended to show how restart itself elevated if required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants