I am trying to install trusted self-singed root certificate on microsoft/aspnetcore docker image.
I followed following threads here,
Trusted Root Certificates in DotNet Core on Linux (RHEL 7.1)
Install certificate in dotnet core docker container
It didn't work for me. here is output of docker build,
Step 10/24 : COPY corppvt_root_cert.cer /usr/local/share/ca-certificates/corppvt_root_cert.cer ---> af1674a5219c
Step 11/24 : COPY CCASRootCert.cer /usr/local/share/ca-certificates/CCASRootCert.cer ---> a2d6affc1ae1
Step 12/24 : RUN update-ca-certificates ---> Running in ca6fb1b9aa50 Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Removing intermediate container ca6fb1b9aa50
from output of RUN update-ca-certificates command, it seems like it's not able to identify/store newly copied certificates as output says 0 added, 0 removed.
I am using microsoft/aspnetcore image. which i believe Ubuntu/Debian based image. so certificate location should be /usr/local/share/ca-certificates/
can someone advice what's wrong this commands and why cert store is not getting updated? Has anyone used this image before and did this ssl stuff?
Thanks in advance!