Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carlosguerravz/devcerts check #5589

Merged
merged 16 commits into from
Feb 24, 2023
Merged

Conversation

CarlosGuerraVz
Copy link
Collaborator

@CarlosGuerraVz CarlosGuerraVz commented Feb 21, 2023

This commit fixes #3187 by implementing the proposal in the comments.

  • Added launch option checkForDevCert and documented it on debugger-launchjson.md.
  • When debugging, if not on Linux, on remote, or on a browser, the extension runs dotnet dev-certs https --check to check for dev-certs.
  • If not found, it displays the following message:

image

  • Selecting yes will run dotnet dev-certs https --trust
  • More information will redirect to the page containing the description for the checkForDevCert` launch option.
  • If certificate creation fails it will log the failure to the C# output and will display a message offering to show the error output.
  • Tested on Windows and MacOS

…also added a modal to the Don't ask again option for telling the user to ser checkForDevCert to false
…ged hasDotnetDevCertsHttps and createSelfSignedCert to not rely on the process string output and instead to just return false if the exec fails
…pdated functions to return error and exit code along strings. set not now option as iscloseaffordance
Copy link
Contributor

@gregg-miskelly gregg-miskelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

@CarlosGuerraVz CarlosGuerraVz merged commit ed84442 into master Feb 24, 2023
@CarlosGuerraVz CarlosGuerraVz deleted the carlosguerravz/devcerts_check branch February 27, 2023 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically prompt to create and trust ASP.NET Core HTTPS development certificate
4 participants