How to sign script powershell?

Андрей Михалевский 3,451 Reputation points
2024-08-20T09:37:12.8966667+00:00

Hi.

Hello. I issued a certificate from the “Code Sign” template, but for some reason I can't sign the script

Also, I noticed I don't see my certificate if I add the -CodeSigningCertkey

5

4

3

2

1

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2024-08-20T15:41:52.65+00:00

    It doesn't look like you have a valid cert. I was going to suggest using the old IE to check the cert, but I'm not certain you can do that any longer in Windows 11. :-(

    https://www.digicert.com/kb/code-signing/verifying-code-signing-certificate.htm#:~:text=If%20you%20have%20multiple%20code%20signing%20certificates%2C%20use,your%20code%20signing%20certificate%20to%20start%20signing%20code.

    You should be able to examine the certificate using the appropriate snap-in, though.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.