Browse Source

added localhost.pfx in Docker

staging
yusuf karatoprak 5 years ago
parent
commit
f9c494f6ff
  1. 2
      Dockerfile.EventHub.HttpApi.Host
  2. 2
      Dockerfile.EventHub.IdentityServer
  3. 2
      Dockerfile.EventHub.Web
  4. 23
      localhost.conf

2
Dockerfile.EventHub.HttpApi.Host

@ -11,7 +11,7 @@ COPY . .
WORKDIR "/src/src/EventHub.HttpApi.Host"
RUN dotnet dev-certs https -v -ep localhost.pfx -p e8202f07-66e5-4619-be07-72ba76fde97f
RUN dotnet dev-certs https --trust
RUN dotnet build "EventHub.HttpApi.Host.csproj" -c Release -o /app
FROM build AS publish

2
Dockerfile.EventHub.IdentityServer

@ -11,7 +11,7 @@ COPY . .
WORKDIR "/src/src/EventHub.IdentityServer"
RUN dotnet dev-certs https -v -ep localhost.pfx -p e8202f07-66e5-4619-be07-72ba76fde97f
RUN dotnet dev-certs https --trust
RUN dotnet build "EventHub.IdentityServer.csproj" -c Release -o /app
FROM build AS publish

2
Dockerfile.EventHub.Web

@ -11,7 +11,7 @@ COPY . .
WORKDIR "/src/src/EventHub.Web"
RUN dotnet dev-certs https -v -ep localhost.pfx -p e8202f07-66e5-4619-be07-72ba76fde97f
RUN dotnet dev-certs https --trust
RUN dotnet build "EventHub.Web.csproj" -c Release -o /app
FROM build AS publish

23
localhost.conf

@ -0,0 +1,23 @@
[req]
default_bits = 2048
default_keyfile = localhost.key
distinguished_name = req_distinguished_name
req_extensions = req_ext
x509_extensions = v3_ca
[req_distinguished_name]
commonName = Common Name (e.g. server FQDN or YOUR name)
commonName_default = localhost
commonName_max = 64
[req_ext]
subjectAltName = @alt_names
[v3_ca]
subjectAltName = @alt_names
basicConstraints = critical, CA:false
keyUsage = keyCertSign, cRLSign, digitalSignature,keyEncipherment
[alt_names]
DNS.1 = localhost
DNS.2 = 127.0.0.1
Loading…
Cancel
Save