Last active
October 4, 2024 03:47
-
-
Save JoeGlines/5bc6c442324a3d828484267f0315ff79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;******************************************************* | |
; Want a clear path for learning AHK; Take a look at our AutoHotkey courses. | |
; They're structured in a way to make learning AHK EASY: https://the-Automator.com/Learn | |
;******************************************************* | |
; Create certificate | |
$cert = New-SelfSignedCertificate -Subject "{CertName}" -CertStoreLocation "cert:\CurrentUser\My" -HashAlgorithm sha256 -type CodeSigning | |
; Create password | |
$pwd = ConvertTo-SecureString -String "{123456}" -Force -AsPlainText | |
; Export Certificate to a file | |
Export-PfxCertificate -cert $cert -FilePath {CertName}.pfx -Password $pwd | |
; Sign the executable | |
signtool.exe sign /f {CertName.pfx /fd sha256 /p 123456 {Program}.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment