-
Notifications
You must be signed in to change notification settings - Fork 521
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
Support HTTPS in ASP.NET Core apps #1144
Comments
Things I'd like to do:
*Regarding trusting the certificate:
|
I'm having a lot of trouble with cert trust on Mac. I can't figure out a way to launch |
@bwateratmsft About the issue with Mac, can we execute any shell script from the code? If that's possible we can think of applescript or even a simple shell script to do that. Applescript for sure has the capabilities to open a new terminal window and run a script inside it. |
@pratiksanglikar AppleScript was the closest I was able to get to something working. I ended up with something like |
@bwateratmsft maybe take a look at this code: You could prompt the user for the password up front using a VS Code input box (there's a specific option for |
@EricJizbaMSFT I think that asking users for their login password is not a good idea. It sorta seems like one of those "You have no business asking for this password" sort of scenarios... |
Well yes you would have to explain why you're asking for the password. Popping up an external terminal is more of a VS/windows thing to me. It never happens in VS Code because VS Code already has an integrated terminal. I've also just never seen it on a Mac - possibly because of how difficult it is to implement (as you described), but either way the end result is I think users would actually feel more familiar/comfortable with a VS Code password input box than a random external terminal. |
Currently "dotnet new" will enable HTTPS by default for ASP.NET Core apps, but this extension does not support it. Exposing 443 has no effect, and setting the ASPNETCORE_URLS to include HTTPS results in app startup failure, because no certificate is found.
Visual Studio automatically configures the ASP.NET Core HTTPS development certificate and maps in a volume containing it, and an additional volume with dotnet user-secrets for the certificate password.
The ask is to do that here too.
The text was updated successfully, but these errors were encountered: