Step by step: Expose ASP.NET Core over HTTPS with Docker

This week I decided to modify the sample of my previous post: Step by step: Scale ASP.NET Core with Docker Swarm so you can add TLS to your ASP.NET Core applications and Dockerize it.

Let’s see how I changed the application in order to make it work:

1. Add HTTPS support for Kestrel
2. Configure Kestrel to use HTTPS

Now It’s time to show you how to Dockerize the application:

1. Create a dockerfile
2. Create a Docker image
3. Test the Docker image
4. Run the Docker image as a daemon process

You can get a copy of the docker file here:

Hope it helps!

3 thoughts on “Step by step: Expose ASP.NET Core over HTTPS with Docker

  1. Please, could you provide example with “Mutual Certificate Authentication”
    with core and docker, I’am try to use HttpsConnectionFilterOptions.ClientCertificateValidation
    but it doesn’t work with .NET 4.6 client (and works only with .net core client)

Leave a Reply

Your email address will not be published. Required fields are marked *