Skip to content

Mac: dotnet dev-certs https --trust does not explain how to undo this #4102

@migueldeicaza

Description

@migueldeicaza

When you run this command, it does not say what actually is taking place, it leaves a critical element, which is needed later to undo this:

$ dotnet dev-certs https --trust
Trusting the HTTPS development certificate was requested. If the certificate is not already trusted we will run the following command:
'sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain <<certificate>>'
This command might prompt you for your password to install the certificate on the system keychain.

I could not figure out what certificate was added to my system, it took me a while to debug this as the actual certificate is replaced with the string <<certificate>> above.

Metadata

Metadata

Assignees

Labels

✔️ Resolution: FixedThe bug or enhancement requested in this issue has been checked-in!DoneThis issue has been fixedaffected-fewThis issue impacts only small number of customersarea-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-devcertsseverity-minorThis label is used by an internal tool

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions