title: Signtool using output from debug option
body: <p>I am using <code>SignTool</code> and a digital certificate to sign dll's.</p>
  
  <p>Signing of dll's is one step of my build process. I use msbuild to build my applications, so it is one of the <code>Target</code> and uses <code>Exec Command</code> to sign the dlls as follows - </p>
  
  <pre><code>&lt;Exec Command = "signtool sign /a /v /sha1 $(SHA1) $(binPath)\app.exe" /&gt;
  where $(SHA) is the hash of the certificate 
  $(binPath) is the path of the binaries
  </code></pre>
  
  <p>Now this doesn't sign the dll's and gives me an error stating </p>
  
  <p><code>SignTool Error: No certificates were found that met all the given criteria.</code></p>
  
  <p>I tried <code>debug</code> options according to this <a href="https://stackoverflow.com/questions/22946399/signtool-error-no-certificates-were-found-that-met-all-given-criteria-with-a-wi">post</a></p>
  
  <p>And i got following output</p>
  
  <pre><code>21:00:06,920 INFO  - The following certificates were considered:
  21:00:06,923 INFO  - Issued to: &lt;Issued to company name&gt;
  21:00:06,923 INFO  -
  21:00:06,923 INFO  - Issued by: &lt;Issued by company name&gt;
  21:00:06,923 INFO  -
  21:00:06,924 INFO  - Expires: Mon Nov 28 05:29:59 2016
  21:00:06,924 INFO  -
  21:00:06,924 INFO  - SHA1 hash: D5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxDA
  21:00:06,924 INFO  -
  21:00:06,924 INFO  -
  21:00:06,924 INFO  - Issued to: &lt;Issued to company name&gt;
  21:00:06,924 INFO  -
  21:00:06,924 INFO  - Issued by: &lt;Issued by company name&gt;
  21:00:06,924 INFO  -
  21:00:06,924 INFO  - Expires: Sun Dec 10 05:29:59 2023
  21:00:06,924 INFO  -
  21:00:06,924 INFO  - SHA1 hash: D0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxBC
  21:00:06,924 INFO  -
  21:00:06,924 INFO  -
  21:00:06,925 INFO  - Issued to: &lt;Issued to company name&gt;
  21:00:06,925 INFO  -
  21:00:06,925 INFO  - Issued by: &lt;Issued by company name&gt;
  21:00:06,925 INFO  -
  21:00:06,925 INFO  - Expires: Thu Jul 17 05:29:59 2036
  21:00:06,925 INFO  -
  21:00:06,925 INFO  - SHA1 hash: 91xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx81
  21:00:06,925 INFO  -
  21:00:06,925 INFO  -
  21:00:06,925 INFO  - After EKU filter, 3 certs were left.
  21:00:06,925 INFO  - After expiry filter, 2 certs were left.
  21:00:06,925 INFO  - After Hash filter, 0 certs were left.
  21:00:06,925 INFO  - After Private Key filter, 0 certs were left.
  21:00:06,925 INFO  - SignTool Error: No certificates were found that met all the given criteria.
  </code></pre>
  
  <p>After getting this output I have no clue as to how should I proceed.</p>
  
  <p>However there is one more observation,</p>
  
  <p><code>SignTool</code> successfully signs the dll's when it is run through command prompt.</p>
  
  <p>Now this is above thing is making me go crazy.</p>
  
  <p>Request assistance. </p>