I am stuck with getting https client authentification to work with an Asp.Net Core application running in a docker container with Debian. The Asp.Net application works fine on windows with the clients authenticating via certificates.
However, if I run the asp.net app in the docker container some clients won't send any client certificate, cause in the SSL Handshake the Server sends a list of all his trusted root CAs. Then some clients based on .Net 4.0 filter their client certificates so it only contains certificates which are issued by the CAs from this list.
Now my problem is I don't get the root CA installed with the docker Debian system so my root CA is in the list sent by the server.
What I already tried is to add the certificate in my dockerfile with
ADD ${source:-my_ca_root.crt} /usr/local/share/ca-certificates/my_ca_root.crt
RUN update-ca-certificates
But this doesn't seem to work.
Another option would be to tell the server to not send the certificate trust list, but I couldn't find a solution for this.
The Asp.NET Core app is running with the "Microsoft/aspnetcore:2.0" docker image.