'Failed to setup dotNet certificate on mac by all means
I am trying to run the Dotnet version 6 app on macOS latest version I searched everywhere, it was always required to install the certificate although I had a valid one.
"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
what I did
1- Deleted the keychain altogether many times.
2- Restart, shutdown, and reinstall the SDK and visual studio .
3- test for the certificate A valid HTTPS certificate is already present .
4- I did dotnet dev-certs https --clean then dotnet dev-certs https then dotnet dev-certs https --trust and A valid HTTPS certificate is already present.
and still failed to run the MVC web app. the error reoccurs. Any idea will be highly appreciated
Solution 1:[1]
It was the KeyChain Deleting the certificate from the keychain and then Run without Debugging from visual studio code until it needs the keychain password. then it works
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | mercury |
