Skip to content

Commit 9f96d1f

Browse files
SFI docker-compose-https7.md (#35331)
* SFI docker-compose-https7.md * Apply suggestions from code review
1 parent 25b78de commit 9f96d1f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

aspnetcore/security/includes/docker-compose-https7.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,13 @@ services:
6565
environment:
6666
- ASPNETCORE_ENVIRONMENT=Development
6767
- ASPNETCORE_URLS=https://+:443;http://+:80
68-
- ASPNETCORE_Kestrel__Certificates__Default__Password=password
68+
- ASPNETCORE_Kestrel__Certificates__Default__Password=-\0pw-
6969
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
7070
volumes:
7171
- ~/.aspnet/https:/https:ro
7272
```
73-
The password specified in the docker compose file must match the password used for the certificate.
73+
The password specified in the docker compose file must match the password used for the certificate. In the preceding commands, replace `-\0pw-` with a password.
74+
7475

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

@@ -143,12 +144,14 @@ services:
143144
environment:
144145
- ASPNETCORE_ENVIRONMENT=Development
145146
- ASPNETCORE_URLS=https://+:443;http://+:80
146-
- ASPNETCORE_Kestrel__Certificates__Default__Password=password
147+
- ASPNETCORE_Kestrel__Certificates__Default__Password=-\0pw-
147148
- ASPNETCORE_Kestrel__Certificates__Default__Path=C:\https\aspnetapp.pfx
148149
volumes:
149150
- ${USERPROFILE}\.aspnet\https:C:\https:ro
150151
```
151-
The password specified in the docker compose file must match the password used for the certificate.
152+
```suggestion
153+
The password specified in the docker compose file must match the password used for the certificate. In the preceding commands, replace `-\0pw-` with a password.
154+
152155

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

0 commit comments

Comments
 (0)