Running Asp.net app with HTTPS on local

  • I’m running dotnet core 8 on MacOs using zsh
  • I’ve wanted to test out running asp.net Aspire locally to understand basic setup
  • I’ve stumbled into an immediate issue with running the AppHost project where it couldn’t recognise the HTTPS dev certificate installed.
  • The dotnet cli tool provides some explanation of the commands to run to resolve the issue, however, running them as is didn’t work.
  • To clear the dev certificates requires root privileges but there’s no indication that the other commands to manage certificates and run the project requires the same.
  • If running all commands as sudo (including dotnet run –project ./xx/yy.csproj) it seems to read the HTTPS dev certificate as expected and the app runs.
  • I’d imagine doing the same on WSL or linux systems will be similar.

Posted

in

by

Tags:

Comments

Leave a Reply

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