Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 995 Bytes

DEVELOPER.md

File metadata and controls

14 lines (11 loc) · 995 Bytes

Signing the PowerShell Scripts

$certPfx = "$env:CHOCOLATEY_OFFICIAL_CERT"
$certPassword = Get-Content "$env:CHOCOLATEY_OFFICIAL_CERT_PASSWORD"
$timeStampServer = ""
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($certPfx, $certPassword)

Set-AuthenticodeSignature -Filepath ".\chocolatey\Website\Install.ps1" -Cert $cert -TimeStampServer $timeStampServer -IncludeChain NotRoot -HashAlgorithm SHA256
Set-AuthenticodeSignature -Filepath ".\chocolatey\Website\Install.Versioned.ps1" -Cert $cert -TimeStampServer $timeStampServer -IncludeChain NotRoot -HashAlgorithm SHA256
Set-AuthenticodeSignature -Filepath ".\chocolatey\Website\InstallAbsoluteLatest.ps1" -Cert $cert -TimeStampServer $timeStampServer -IncludeChain NotRoot -HashAlgorithm SHA256
Set-AuthenticodeSignature -Filepath ".\chocolatey\Website\Install-LastPoshClient.ps1" -Cert $cert -TimeStampServer $timeStampServer -IncludeChain NotRoot -HashAlgorithm SHA256