Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date
Kestrel was told to listen on HTTPS but has no certificate — the ASP.NET Core dev certificate is missing/expired, or production didn’t configure one.
Unable to configure HTTPS endpointNo server certificate was specified, and the default developer certificate could not be found or is out of datedotnet dev-certs https Meaning
In development run dotnet dev-certs https --trust. In containers/production, either terminate TLS at a proxy and listen on HTTP, or configure a certificate (Kestrel:Certificates or ASPNETCORE_Kestrel__Certificates__Default__Path).
Common causes
- Dev certificate not created/trusted or expired
- Docker container with https URLs but no certificate
- Production config expecting a certificate path that doesn’t exist
⚡ Quick fix
- dotnet dev-certs https --clean && dotnet dev-certs https --trust
- In containers listen on http (ASPNETCORE_URLS=http://+:8080) behind a proxy
- Mount and configure a certificate for Kestrel
Detailed fix by platform
Shell
- csharp
dotnet dev-certs https --clean dotnet dev-certs https --trust export ASPNETCORE_URLS=http://+:8080
How to diagnose
- URLs — ASPNETCORE_URLS / launchSettings
- Cert — dev-certs check
- Environment — Dev or container?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in .NET
- FileNotFoundException assembly Could not load file or assembly 'X, Version=…' or one of its dependencies
- Unable to cast object of type System.InvalidCastException: Unable to cast object of type 'X' to type 'Y'
- NullReferenceException System.NullReferenceException: Object reference not set to an instance of an object
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026