Skip to content

Instantly share code, notes, and snippets.

@Gimly
Last active November 13, 2015 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gimly/375cc449ad4099ccd6b0 to your computer and use it in GitHub Desktop.
Save Gimly/375cc449ad4099ccd6b0 to your computer and use it in GitHub Desktop.
[CmdletBinding()]
param(
[Parameter(Mandatory=$True)]
[string]$PfxCertificateFilePath,
[Parameter(Mandatory=$True)]
[string]$SignCertPassword,
[Parameter(Mandatory=$True)]
[string]$ExeFilePath
)
Set-Alias signtool 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\SignTool.exe'
Write-Host "Signing the application"
signtool sign /t http://timestamp.digicert.com /f $PfxCertificateFilePath /p $SignCertPassword $ExeFilePath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment