From 774829cbc42cb5af599e1ab720d108c94bc63cb5 Mon Sep 17 00:00:00 2001 From: Matt Arnold Date: Sun, 1 Jan 2023 09:33:48 -0500 Subject: Sync up with production --- Dockerfile | 4 ++++ sign.sh | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 sign.sh diff --git a/Dockerfile b/Dockerfile index 48649bb..0e03041 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,10 @@ WORKDIR /app/src COPY appbuild.sh /app/src RUN chmod +x appbuild.sh RUN ./appbuild.sh +COPY intercept.key /app +COPY intercept.csr /app +COPY intercept.crt /app + WORKDIR / COPY entrypoint.sh / RUN chmod +x entrypoint.sh diff --git a/sign.sh b/sign.sh new file mode 100644 index 0000000..3492df2 --- /dev/null +++ b/sign.sh @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +[ -f intercept.key ] || + openssl genrsa -out intercept.key 2048 + +[ -f intercept.csr ] || + openssl req -new -key intercept.key -out intercept.csr -subj /CN=intercept.miniweb + +openssl x509 -sha256 -req -days 365 -in intercept.csr -out intercept.crt -signkey intercept.key -- cgit 1.3.0-5-g400f