Author Topic: Sign Tool Error: No certificates were found  (Read 1455 times)

needhmi

  • Newbie
  • *
  • Posts: 27
    • View Profile
Sign Tool Error: No certificates were found
« on: May 05, 2018, 09:30:42 AM »
I've been using Visual Studio version 17 for several months with no issues, but last night got this error when trying to build:
An error occurred while signing: Failed to sign bin\Debug\app.publish\AdvancedHMI.exe. SignTool Error: No certificates were found that met all the given criteria.         

I thought it may be due to the changes I was making to my project, so went back to an old project and still have the same error. 

Any ideas?   

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5268
    • View Profile
    • AdvancedHMI
Re: Sign Tool Error: No certificates were found
« Reply #1 on: May 05, 2018, 10:02:45 AM »
I always recommend to never use Publish. It has several quirks that will give you problems.

https://www.advancedhmi.com/forum/index.php?topic=14.msg37#msg37

https://www.advancedhmi.com/forum/index.php?topic=1047.msg5491#msg5491

needhmi

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Sign Tool Error: No certificates were found
« Reply #2 on: May 05, 2018, 10:50:18 AM »
Yeah wasn't using publish, just building it, something I have done at least 50 times before.  I found the "Sign the click once manifests" flag was checked in Visual studio (perhaps some windows update changed it, I sure didn't).  Unchecked that (see attached) and it's working again. 

Thanks for the answer anyway Archie!

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5268
    • View Profile
    • AdvancedHMI
Re: Sign Tool Error: No certificates were found
« Reply #3 on: May 05, 2018, 11:39:00 AM »
My mistake.... I jumped to the conclusion it was a publish issue because the test certificate is always the first sign that publish was used and the 1 year later the certificate expired.