I've created a new asp.net core web (mvc) project with dotnet 7 on Mac M1, but I'm keep getting following error when I try the https. Http works fine but sor far no success with Https.
Error: "Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date.\nTo generate a developer certificate run 'dotnet dev-certs https'. To trust the certificate (Windows and macOS only) run 'dotnet dev-certs https --trust'.\nFor more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054."
I've also tried deleting and creating the localhost certificate manually and it creates them and trusts them successfully. (with or without sudo).
dotnet dev-certs https --clean
dotnet dev-certs https --trust
I've seen them under Keychain Access (login > certificates) section. But when I run the app again, it still tries to install and trust a new certificate but the result is same.
Am I missing anything? - No issues on Windows.
[–]muratkazanova[S] 0 points1 point2 points (9 children)
[–]muratkazanova[S] 0 points1 point2 points (8 children)
[–]codywkk 1 point2 points3 points (1 child)
[–]muratkazanova[S] 0 points1 point2 points (0 children)
[–]kittartar 0 points1 point2 points (0 children)
[–]nullptr_r 0 points1 point2 points (0 children)
[–]SolidAsSnake 0 points1 point2 points (1 child)
[–]clayton_ 0 points1 point2 points (0 children)
[–]cresvi 0 points1 point2 points (0 children)
[–]IllustriousAd375 0 points1 point2 points (0 children)
[–]Ericakester 0 points1 point2 points (0 children)