Skip to content

How to use DigestAlgorithm in Sign method? #3810

Answered by nils-a
saigkill asked this question in Q&A
Discussion options

You must be logged in to vote

@saigkill The value of the DigestAlgorithm property is of type SignToolDigestAlgorithm, so possible values are SignToolDigestAlgorithm.Sha1 or SignToolDigestAlgorithm.Sha256.

Try:

Task("Sign20348")
 .IsDependentOn("Publish20348")
 .Does(() =>
{
  var file = new FilePath("./bin/publish-20348/WayFair-Label-App.exe");
  Sign(file, new SignToolSignSettings 
  {
    TimeStampUri = new Uri("http://timestamp.digicert.com"),
    CertPath = "MarcosSoftwareKey.pfx",
    Password = "pioneers",
    DigestAlgorithm = SignToolDigestAlgorithm.Sha256
  });
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@saigkill
Comment options

Answer selected by saigkill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants