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
- Change the configuration of
identityserver
to make it work in iiswithoutSSL
. - Then change the configuration of the
docker
container anddocker compose
by removing anySSL
relatedconiguratiion. - Run the application from the
docker compose
andeverthing is working perfectly - Apply small change to theconfiguration to make sure this will be changed in production toinclude the
SSL
certificate.