Skip to content

Commit

Permalink
(chocolatey#147) Update cert subject name + set via env var
Browse files Browse the repository at this point in the history
This updates the default Authenticode subject name to match what it
changed to during the recent renewal process. It also enables setting
this same name via an Environment Variable so that no changes are needed
urgently if it changes again in the future.
  • Loading branch information
Windos committed May 10, 2024
1 parent dc4e739 commit 32aa0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Chocolatey.Cake.Recipe/Content/parameters.cake
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ public static class BuildParameters
CertificateAlgorithm = context.EnvironmentVariable("CERT_ALGORITHM") ?? "Sha256";
CertificateFilePath = context.EnvironmentVariable("CHOCOLATEY_OFFICIAL_CERT") ?? "";
CertificatePassword = context.EnvironmentVariable("CHOCOLATEY_OFFICIAL_CERT_PASSWORD") ?? "";
CertificateSubjectName = certificateSubjectName ?? "Chocolatey Software, Inc.";
CertificateSubjectName = context.EnvironmentVariable("CHOCOLATEY_OFFICIAL_CERT_SUBJECT_NAME") ?? certificateSubjectName ?? "Chocolatey Software, Inc";
CertificateTimestampUrl = context.EnvironmentVariable("CERT_TIMESTAMP_URL") ?? "http://timestamp.digicert.com";
ChocolateyNupkgGlobbingPattern = chocolateyNupkgGlobbingPattern;
ChocolateyNuspecGlobbingPattern = chocolateyNuspecGlobbingPattern;
Expand Down

0 comments on commit 32aa0d0

Please sign in to comment.