Browse Source

1. Added SSL certificates (pfx files)

2. Copy the certificate to the Linux Container system folder
3. Specified SSL certificate (pfx) path and password in appsettings.json
pull/733/head
rafsanulhasan 6 years ago
parent
commit
b4044a57b6
4 changed files with 23 additions and 15 deletions
  1. BIN
      Certificates/DotNet Foundation CA.pfx
  2. BIN
      Certificates/eShopOnContainers.pfx
  3. +21
    -13
      src/ApiGateways/Mobile.Bff.Shopping/aggregator/appsettings.json
  4. +2
    -2
      src/Web/WebMVC/Dockerfile

BIN
Certificates/DotNet Foundation CA.pfx View File


BIN
Certificates/eShopOnContainers.pfx View File


+ 21
- 13
src/ApiGateways/Mobile.Bff.Shopping/aggregator/appsettings.json View File

@ -1,15 +1,23 @@
{
"Logging": {
"IncludeScopes": false,
"Debug": {
"LogLevel": {
"Default": "Warning"
}
},
"Console": {
"LogLevel": {
"Default": "Warning"
}
}
}
"Logging": {
"IncludeScopes": false,
"Debug": {
"LogLevel": {
"Default": "Warning"
}
},
"Console": {
"LogLevel": {
"Default": "Warning"
}
}
},
"Kestrel": {
"Certificates": {
"Default": {
"Path": "./synergydev.pfx",
"Password": "RH@ssl2018"
}
}
}
}

+ 2
- 2
src/Web/WebMVC/Dockerfile View File

@ -1,5 +1,5 @@
ARG NODE_IMAGE=node:8.11
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
FROM microsoft/dotnet:2.1.3-aspnetcore-runtime AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
@ -17,7 +17,7 @@ FROM dotnet-build as build
WORKDIR /src/src/Web/WebMVC/wwwroot
COPY --from=node-build /web/wwwroot .
WORKDIR /src
COPY src/Web/WebMVC/synergydev.pfx /root/.aspnet/https/
COPY Certificates/eShopOnContainers.pfx /root/.aspnet/https/
COPY . .
WORKDIR /src/src/Web/WebMVC
RUN dotnet restore -nowarn:msb3202,nu1503


Loading…
Cancel
Save