Skip to content

Instantly share code, notes, and snippets.

@dlwyatt

dlwyatt/sign.ps1 Secret

Created June 5, 2015 12:07
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 dlwyatt/40f46051e3e68f859f73 to your computer and use it in GitHub Desktop.
Save dlwyatt/40f46051e3e68f859f73 to your computer and use it in GitHub Desktop.
Signing example
$cert = Get-Item Cert:\CurrentUser\My\20164DCA86BDFBB5B345AF85F5DB54E9AFFA3F30
Set-AuthenticodeSignature -FilePath C:\Scripts\SomeScript.ps1 `
-Certificate $cert `
-TimestampServer http://timestamp.digicert.com `
-IncludeChain All `
-HashAlgorithm SHA256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment