Tuesday, 23 January 2024

ASP.NET Development Certificates in Traefik

The ASP.NET Core HTTPS development certificate can be created with the dotnet dev-certs command.

It is found in Certificate Manager (User Certificates, NOT Local Computer) under the Personal Certificates and Trusted Root Certification Authorities nodes.

You can search for it by it's SHA-1 hash (known as the thumbprint in the Certificate Details tab).

To export the certificate for use in a Traefik Reverse Proxy, type:

dotnet dev-certs https --export-path aspnet.crt --trust --format Pem --no-password

and follow these instructions to add it to Traefik:

https://www.andrewdixon.co.uk/2020/03/14/using-https-certificates-with-traefik-and-docker-for-a-development-environment/

No comments:

Post a Comment