I have a dotnetcore web.api application that runs in docker. I'm using the windows version and not the linux version. I'm using the image microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1709
This application calls an external api (https) and I get an error saying the SSL verification failed. After some googling I found out that my enterprise's root certificate must also be available in the container.
I tried it first with Powershell using the Import-Certificate command. But this failed. It seems Powershell is not present in the image. I then found this blogpost. But Certoc is also not present on the image and I can't find a place where to download this.
Is there a way to install the certificate using the image microsoft/dotnet? Or do i have to use the microsoft/windowsservercore image?