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
This commit is contained in:
rafsanulhasan 2018-09-01 03:02:44 +06:00
parent c15c898175
commit b4044a57b6
4 changed files with 23 additions and 15 deletions

Binary file not shown.

Binary file not shown.

View File

@ -11,5 +11,13 @@
"Default": "Warning"
}
}
},
"Kestrel": {
"Certificates": {
"Default": {
"Path": "./synergydev.pfx",
"Password": "RH@ssl2018"
}
}
}
}

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