From b812a58260fb16749918c08e048d317dc9bbd0ba Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Mon, 13 May 2024 23:46:36 -0700 Subject: [PATCH] (build) Update cert subject name + set via env var 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. --- Chocolatey-AU.build.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Chocolatey-AU.build.ps1 b/Chocolatey-AU.build.ps1 index e4e6d273..e518ccdf 100644 --- a/Chocolatey-AU.build.ps1 +++ b/Chocolatey-AU.build.ps1 @@ -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]