Add powershell command (#27982)

pull/27988/head
Rick Anderson 2022-12-29 16:41:48 -10:00 committed by GitHub
parent e287ef64cf
commit 9281725275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 7 deletions

View File

@ -49,12 +49,19 @@ Use the following instructions for your operating system configuration.
Generate certificate and configure local machine:
```dotnetcli
dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p { password here }
```powershell
dotnet dev-certs https -ep "$env:USERPROFILE\.aspnet\https\aspnetapp.pfx" -p $CREDENTIAL_PLACEHOLDER$
dotnet dev-certs https --trust
```
In the preceding commands, replace `{ password here }` with a password.
The previous command using the .NET CLI:
```dotnetcli
dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p $CREDENTIAL_PLACEHOLDER$
dotnet dev-certs https --trust
```
In the preceding commands, replace `$CREDENTIAL_PLACEHOLDER$` with a password.
Create a _docker-compose.debug.yml_ file with the following content:
@ -88,13 +95,13 @@ docker-compose -f "docker-compose.debug.yml" up -d
Generate certificate and configure local machine:
```dotnetcli
dotnet dev-certs https -ep ${HOME}/.aspnet/https/aspnetapp.pfx -p { password here }
dotnet dev-certs https -ep ${HOME}/.aspnet/https/aspnetapp.pfx -p $CREDENTIAL_PLACEHOLDER$
dotnet dev-certs https --trust
```
`dotnet dev-certs https --trust` is only supported on macOS and Windows. You need to trust certificates on Linux in the way that is supported by your distribution. It is likely that you need to trust the certificate in your browser.
In the preceding commands, replace `{ password here }` with a password.
In the preceding commands, replace `$CREDENTIAL_PLACEHOLDER$` with a password.
Create a _docker-compose.debug.yml_ file with the following content:
@ -128,11 +135,11 @@ docker-compose -f "docker-compose.debug.yml" up -d
Generate certificate and configure local machine:
```dotnetcli
dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p { password here }
dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p $CREDENTIAL_PLACEHOLDER$
dotnet dev-certs https --trust
```
In the preceding commands, replace `{ password here }` with a password.
In the preceding commands, replace `$CREDENTIAL_PLACEHOLDER$` with a password.
Create a _docker-compose.debug.yml_ file with the following content: