-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Open
Labels
⌚ Not TriagedSource - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcsecurity/subsvc
Description
Description
I had quite some issues with the developer certificate on mac. For some reason all removal via tooling or keychain did not solve the issue. I finally found someone that solved it and I think it makes sense to add that to the documentation. The solution is from https://www.reddit.com/r/aspnetcore/comments/10uneql/keep_getting_https_development_certificate_was/ and here is the short version.
- Launch the Keychain Access Application and remove all certificates that are names localhost under login.
- Launch the terminal and navigate to following folder and remove any remaining pfx file manually
cd ~/.aspnet/dev-certs/https
rm *.pfx
(I guess this is the difference and did the trick)
- Run clean and trust dev-certs command below:
dotnet dev-certs https --clean
dotnet dev-certs https -t
- Re-launch the Visual Studio for Mac and run your project with Https (was not necessary for me)
Page URL
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/enforcing-ssl.md
Document ID
12ca0b9a-2638-a4ce-c45f-d4579c83dafb
Article author
Metadata
Metadata
Assignees
Labels
⌚ Not TriagedSource - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcsecurity/subsvc