Skip to content

Commit 0a73ca0

Browse files
committed
(maint) Updates Install Signing Script
The Chocolatey code signing script was recently changed for Reasons, and during the process our expected subject changed slightly.
1 parent 6498db7 commit 0a73ca0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

OfflineInstallPreparation.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (-not (Test-Path $ChocoInstallScript)) {
5050

5151
$Signature = Get-AuthenticodeSignature -FilePath $ChocoInstallScript
5252

53-
if ($Signature.Status -eq 'Valid' -and $Signature.SignerCertificate.Subject -eq 'CN="Chocolatey Software, Inc.", O="Chocolatey Software, Inc.", L=Topeka, S=Kansas, C=US') {
53+
if ($Signature.Status -eq 'Valid' -and $Signature.SignerCertificate.Subject -eq 'CN="Chocolatey Software, Inc", O="Chocolatey Software, Inc", L=Topeka, S=Kansas, C=US') {
5454
if (-not (Get-Command choco.exe -ErrorAction SilentlyContinue)) {
5555
if (Test-Path $PSScriptRoot\files\chocolatey.*.nupkg) {
5656
$env:ChocolateyDownloadUrl = (Convert-Path $PSScriptRoot\files\chocolatey.*.nupkg)[0]

Start-C4bNexusSetup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ process {
8282

8383
$Signature = Get-AuthenticodeSignature -FilePath $ChocoInstallScript
8484

85-
if ($Signature.Status -eq 'Valid' -and $Signature.SignerCertificate.Subject -eq 'CN="Chocolatey Software, Inc.", O="Chocolatey Software, Inc.", L=Topeka, S=Kansas, C=US') {
85+
if ($Signature.Status -eq 'Valid' -and $Signature.SignerCertificate.Subject -eq 'CN="Chocolatey Software, Inc", O="Chocolatey Software, Inc", L=Topeka, S=Kansas, C=US') {
8686
New-NexusRawComponent -RepositoryName 'choco-install' -File $ChocoInstallScript
8787
} else {
8888
Write-Error "ChocolateyInstall.ps1 script signature is not valid. Please investigate."

0 commit comments

Comments
 (0)