How do I add a CA root certificate inside a docker image?

前端 未结 4 861
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 03:58

I am running an ASP.NET Core 1.1 Web API in a Docker 1.13.1 container on Ubuntu 14.04.

When the code attempts to retrieve some data from an HTTPS server, I get this

4条回答
  •  感动是毒
    2020-11-29 04:31

    It's also worth noting that this definitely needs to use the .crt extension. I initially tried this with a .pem cert file (I thought they were interchangeable, so others might also), which is not linked by update-ca-certificates.

提交回复
热议问题