Blog Logo
TAGS

Hosting ASP.NET Core Images with Docker over HTTPS

This article explains how to run pre-built container images with HTTPS using the .NET command-line interface (CLI) and Docker for ASP.NET Core applications. It also covers the prerequisites for certificates, including the use of self-signed certificates for development and testing and Lets Encrypt for production hosting. The article provides command-line instructions for generating a certificate and configuring the local machine for Windows using Linux containers, and how to run the container image with ASP.NET Core configured for HTTPS. The instructions also address the risks of copying certificates into an image and the importance of using Manage TLS Certificates in a Cluster to set up TLS within pods for Kubernetes clusters.