From ea521d0138ca3f648e24673f7cb97f7334e0b899 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Mon, 1 Jun 2020 18:35:32 -1000 Subject: [PATCH] Update enforcing-ssl.md (#18626) * Update enforcing-ssl.md * Update enforcing-ssl.md --- aspnetcore/security/enforcing-ssl.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/aspnetcore/security/enforcing-ssl.md b/aspnetcore/security/enforcing-ssl.md index b5071a72d5..1196e68825 100644 --- a/aspnetcore/security/enforcing-ssl.md +++ b/aspnetcore/security/enforcing-ssl.md @@ -354,9 +354,17 @@ See [this GitHub issue](https://github.com/dotnet/AspNetCore.Docs/issues/6199). The Windows Subsystem for Linux (WSL) generates an HTTPS self-signed cert. To configure the Windows certificate store to trust the WSL certificate: * Run the following command to export the WSL-generated certificate: - `dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p ` + + ``` + dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p + ``` * In a WSL window, run the following command: - `ASPNETCORE_Kestrel__Certificates__Default__Password="" ASPNETCORE_Kestrel__Certificates__Default__Path=/mnt/c/Users/user-name/.aspnet/https/aspnetapp.pfx dotnet watch run` + + ``` + ASPNETCORE_Kestrel__Certificates__Default__Password="" + ASPNETCORE_Kestrel__Certificates__Default__Path=/mnt/c/Users/user-name/.aspnet/https/aspnetapp.pfx + dotnet watch run + ``` The preceding command sets the environment variables so Linux uses the Windows trusted certificate.