title: UWP - SignTool Error: No certificates were found that met all the given criteria
body: <p>I'm getting this error after our company changed its AD domain. 
  UWP app development with VS 2019 and Windows 10 (1903)</p>
  
  <blockquote>
    <p>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(4469,5): error APPX1204: Failed to sign 'D:\AzureDevOps-Workspace\UWP\Main\BoardPACWinApp\bin\x64\Release\BoardPACWinApp_3.51.11.0_x64.appx'. SignTool Error: No certificates were found that met all the given criteria.
    5>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets(4469,5): error APPX1204: 
    ========== Build: 4 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========</p>
  </blockquote>
  
  <p>As soon as we've migrated to the new domain no one can create an app package to publish to the Microsoft store or to sideload.
  Project is running under debug and release modes. Only issue is that it does not allow to publish. </p>
  
  <p><a href="https://i.stack.imgur.com/xkq4J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xkq4J.png" alt="enter image description here"></a></p>
  
  <p>I have tried opening the project on VS 2015 and creating a test certificate but no luck. (Not sure the test certificate has to do anything about this error though)
  In UWP, Signing tab is by default disabled.</p>
  
  <p><a href="https://i.stack.imgur.com/wQ4FS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wQ4FS.png" alt="enter image description here"></a></p>
  
  <p>Everything was ok until the domain change. Administer privileges also given to us on the new domain.</p>
  
  <p>I tried repairing the VS 2019 and no change.</p>
  
  <p>signtool.exe also available in the PC.</p>
  
  <p>I looked at the verbose enabled output windows to see if anything is missing. but besides "No certificates were found that met all the given criteria." there were no other issue logged.</p>
  
  <p>I can see all the valid certificates and they haven't got expired</p>
  
  <p>Highly appreciated all your solutions and guidance. Thank you.</p>