Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions aspnetcore/security/includes/docker-compose-https7.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,13 @@ services:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:443;http://+:80
- ASPNETCORE_Kestrel__Certificates__Default__Password=password
- ASPNETCORE_Kestrel__Certificates__Default__Password=$CREDENTIAL_PLACEHOLDER$
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
volumes:
- ~/.aspnet/https:/https:ro
```
The password specified in the docker compose file must match the password used for the certificate.
The password specified in the docker compose file must match the password used for the certificate. In the preceding commands, replace `$CREDENTIAL_PLACEHOLDER$` with a password.


Start the container with ASP.NET Core configured for HTTPS:

Expand Down Expand Up @@ -143,12 +144,13 @@ services:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:443;http://+:80
- ASPNETCORE_Kestrel__Certificates__Default__Password=password
- ASPNETCORE_Kestrel__Certificates__Default__Password=$CREDENTIAL_PLACEHOLDER$
- ASPNETCORE_Kestrel__Certificates__Default__Path=C:\https\aspnetapp.pfx
volumes:
- ${USERPROFILE}\.aspnet\https:C:\https:ro
```
The password specified in the docker compose file must match the password used for the certificate.
The password specified in the docker compose file must match the password used for the certificate. In the preceding commands, replace `$CREDENTIAL_PLACEHOLDER$` with a password.


Start the container with ASP.NET Core configured for HTTPS:

Expand Down