Identityserver 4 in docker compose The remote certificate is invalid according to the validation procedure Identityserver 4 in docker compose The remote certificate is invalid according to the validation procedure docker docker

Identityserver 4 in docker compose The remote certificate is invalid according to the validation procedure


You cant use a URL like this: https://172.20.16.1:5001

HTTPS requires a certificate and because of that you need a domain name. When I deploy IdentityServer as a container (Azure Container Registry) , I put the signing-key, data-protection key and HTTPS certificate in Azure Key Vault.


thanks for @Tore for his helpful hint in his answer

I followed the following steps to make the identity server work in docker

  1. Change the configuration of identityserver to make it work in iiswithout SSL.
  2. Then change the configuration of the dockercontainer and docker compose by removing any SSL relatedconiguratiion.
  3. Run the application from the docker compose andeverthing is working perfectly
  4. Apply small change to theconfiguration to make sure this will be changed in production toinclude the SSL certificate.