Skip to content

Commit

Permalink
(build) 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
gep13 committed May 14, 2024
1 parent a95d723 commit b812a58
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Chocolatey-AU.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ param(
),

[string]
$CertificateSubjectName = "Chocolatey Software, Inc.",
$CertificateSubjectName = $(
if ($CHOCOLATEY_OFFICIAL_CERT_SUBJECT_NAME) {
$CHOCOLATEY_OFFICIAL_CERT_SUBJECT_NAME
}
else {
'Chocolatey Software, Inc'
}
),


[string]
Expand Down

0 comments on commit b812a58

Please sign in to comment.