AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

The section Trust HTTPS certificate from Windows Subsystem for Linux seems a bit sketchy

Open glennsills opened this issue 6 years ago • 2 comments

[Enter feedback here]

First of all, "Run the following command to export the WSL-generated certificate: dotnet dev-certs https -ep %USERPROFILE%.aspnet\https\aspnetapp.pfx -p "

Does this mean to run the command in the windows host of the WSL? I assumed it means run at a powershell prompt. When I do run the command I get this error:

"A valid HTTPS certificate is already present."

This is true, there is a cert there already named. "aspnetapp.pfx"

In the second bullet item there seems to be three unexplained commands. The first two which seem to be setting environmental variables need a to be preceeded by "set". Of course, I don't know what the password should be at this point because of the earlier problem.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

glennsills avatar May 31 '20 15:05 glennsills

The problem area is Trust HTTPS certificate from Windows Subsystem for Linux

These questions need to be answered and the code needs to be probably formatted.

Rick-Anderson avatar Jun 02 '20 04:06 Rick-Anderson

@glennsills I fixed the formatting - so it's easier to understand.

Yes, run the 1st command in windows. The cert exists, you're exporting it.

Rick-Anderson avatar Jun 02 '20 04:06 Rick-Anderson