Local PS Signing Fails
$Params = @{
Subject = "CN=Test Code Signing"
Type = "CodeSigningCert"
KeySpec = "Signature"
KeyUsage = "DigitalSignature"
FriendlyName = "Test code signing"
NotAfter = [datetime]::now.AddYears(5)
CertStoreLocation = 'Cert:\CurrentUser\My' }
$TestCodeSigningCert = New-SelfSignedCertificate @Params
Export-Certificate -FilePath exported_cert.cer -Cert $TestCodeSigningCert
Import-Certificate -FilePath exported_cert.cer -CertStoreLocation Cert:\CurrentUser\Root
Set-AuthenticodeSignature -Certificate $TestCodeSigningCert -FilePath HelloWorld.exe
https://github.com/PowerShell/PowerShell/issues/4753
Benim için : Set-AuthenticodeSignature -FilePath .\Microsoft.PowerShell_profile.ps1 -Certificate $TestCodeSigningCert
Yorumlar
Yorum Gönder