Update enforcing-ssl.md (#18626)
* Update enforcing-ssl.md * Update enforcing-ssl.mdpull/18627/head
parent
663c9ebbc3
commit
ea521d0138
|
@ -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:
|
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:
|
* Run the following command to export the WSL-generated certificate:
|
||||||
`dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p <cryptic-password>`
|
|
||||||
|
```
|
||||||
|
dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p <cryptic-password>
|
||||||
|
```
|
||||||
* In a WSL window, run the following command:
|
* In a WSL window, run the following command:
|
||||||
`ASPNETCORE_Kestrel__Certificates__Default__Password="<cryptic-password>" ASPNETCORE_Kestrel__Certificates__Default__Path=/mnt/c/Users/user-name/.aspnet/https/aspnetapp.pfx dotnet watch run`
|
|
||||||
|
```
|
||||||
|
ASPNETCORE_Kestrel__Certificates__Default__Password="<cryptic-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.
|
The preceding command sets the environment variables so Linux uses the Windows trusted certificate.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue