title: identityserver4 the remote certificate is invalid because of errors in the certificate chain: untrustedroot
body: <p>I am hosting my IdentityServer, Web API and MVC client apps all with IIS server, under HTTPS. When I run the my MVC client I get the following error back (note - 6009 is the port of my MVC client and 6005 is the port of my IdentityServer):</p>
  <p><a href="https://i.stack.imgur.com/qvMK1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qvMK1.png" alt="enter image description here" /></a></p>
  <p>I am using IIS Express Development Certificate for all projects when I configure them in IIS:</p>
  <p><a href="https://i.stack.imgur.com/1ufqO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1ufqO.png" alt="enter image description here" /></a></p>
  <p>and I copied the certificate from the personal store to the trusted root as the following:</p>
  <p><a href="https://i.stack.imgur.com/GC8CB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GC8CB.png" alt="enter image description here" /></a></p>
  <p>and here is the details of the cert:</p>
  <p><a href="https://i.stack.imgur.com/tlCJX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tlCJX.png" alt="enter image description here" /></a></p>
  <p>what else am I missing here?</p>