From f45ace15b2e83e54de27be841051dca0e741a47d Mon Sep 17 00:00:00 2001 From: BoBeR182 <525433+BoBeR182@users.noreply.github.com> Date: Tue, 19 Aug 2025 16:50:52 -0400 Subject: [PATCH] Add snakeoil placeholder cert https://github.com/ssl/ezXSS/issues/203 --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 94a6660b..bf650590 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,13 @@ RUN apt-get update && \ # Configure Apache and SSL RUN a2enmod ssl + +# Create a self-signed certificate +RUN openssl req -x509 -nodes -days 365 -newkey rsa:2048 \ + -keyout /etc/ssl/private/ssl-cert-snakeoil.key \ + -out /etc/ssl/certs/ssl-cert-snakeoil.pem \ + -subj "/C=US/ST=State/L=City/O=Organization/OU=Unit/CN=localhost" + COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh RUN chmod +x /usr/local/bin/docker-entrypoint.sh