PsSecDrv icon indicating copy to clipboard operation
PsSecDrv copied to clipboard

SignTool Error: Invalid SHA1 hash format: /t

Open KSenfiz opened this issue 1 year ago • 1 comments

Hello, I followed your tutorial to the letter, but at image part i get image and I don't knnow why.After I wen to look trough closed Issues to see If someone else got the same problem and got it solved, but only found a perculiar issue at https://github.com/ericwj/PsSecDrv/issues/5 where appearantly user got a different output in PowerShell at command image for him PowerShell returned with image but for me it's image and I seriously dunno what to do and would rreally appreciate if you could enlighten me where I go worng. If you need more information please let me know.

KSenfiz avatar Jun 12 '24 10:06 KSenfiz

This issue happens if you forget to drop the self signed certificate in the "trustedPublisher" folder in certlm. If you look at the script. It pulls the certificate from CERT:\LocalMachine\TrustedPublisher. so if your $publishers variable is empy you will not get the thumbprint, thereby not be able to sign it.

HelpfulFriend avatar Jul 03 '24 19:07 HelpfulFriend

Yes, that is most likely the culprit.

Remember you can always inspect every variable and see where it goes wrong, since it is simple plain text script code.

ericwj avatar Aug 15 '24 00:08 ericwj