Self-signed SSL certificate for application development
How can I configure a self-signed SSL certificate for application development? When I run the application in Visual Studio, it works with HTTPS on the port defined in launchSettings.json. However, after navigating to /bin/Debug/net8.0 and running the .exe, the application doesn't work the same way. Unlike when running in vs, it runs on port 5000 and uses HTTP. (ASP.NET Core Web API)
3 Replies
dotnet dev-certs command - .NET CLI
The dotnet dev-certs command generates a self-signed certificate to enable HTTPS use in development.
How to correctly use the generated certificate? I've tried various solutions, and none of them have worked
appsettings.json
error