title: signtool with certificate stored in local computer
body: <p>I cant get signtool to find my certificate. The pfx file works for signing, i've checked that by specifying the pfx file directly together with the password. But due to other people having access to the code repository i really dont want to store the certificate + password there.</p>
  
  <p>That's why I've installed the pfx (from symantec) on the build server (as local computer, not per user) in "trusted root certification authorities". This is because Jenkins is started with the local system account.</p>
  
  <p>This is what i'm trying at the moment:</p>
  
  <pre><code>signtool sign /v /sm /s Root /n &lt;thename&gt; /t http://timestamp.digicert.com &lt;thefile&gt;
  </code></pre>
  
  <p>/sm / s Root - this should tell signtool to switch to the "local machine" store, right? and Root should specify "trusted root certification authorities"?</p>
  
  <p>/n - here i'm using the "Issued to" value from the certificate, which is the company name.</p>
  
  <p>I'm met by the following error:</p>
  
  <pre><code>"SignTool Error: No certificates were found that met all the given criteria."
  </code></pre>
  
  <p>I have plowed through so many links today, trying to find out what i'm doing wrong.  i've  I've checked with mmc with a snap-in for certificates on the local computer and the certificate is resiging in "trusted root certification authorities". </p>