SignTool Error: Invalid SHA1 hash format: /t
Hello, I followed your tutorial to the letter, but at
part i get
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
for him PowerShell returned with
but for me it's
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.
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.
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.