From 32cd9bcb087b589d2ffd90f243c378397b90d021 Mon Sep 17 00:00:00 2001 From: Dibran Mulder Date: Thu, 5 Dec 2024 09:33:58 +0100 Subject: [PATCH] Convert to .der on the fly --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 15ab38d..ae83777 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,8 +30,10 @@ COPY --from=javabuild /app/build/libs/irma_email_issuer.war /usr/local/tomee/web COPY ./src/main/resources/email-en.html /config/email-en.html COPY ./src/main/resources/email-nl.html /config/email-nl.html +RUN mkdir /usr/local/keys + ENV IRMA_CONF="/config/" EXPOSE 8080 # Copy the config file to the webapp. This is done at runtime so that the config file can be mounted as a volume. -CMD [ "/bin/sh", "-c", "for lang in 'en' 'nl'; do cp /config/config.js /usr/local/tomee/webapps/ROOT/$lang/assets/config.js; done && exec catalina.sh run" ] +CMD [ "/bin/sh", "-c", "openssl rsa -in /irma-jwt-key/priv.pem -outform der -out /usr/local/keys/priv.der && for lang in 'en' 'nl'; do cp /config/config.js /usr/local/tomee/webapps/ROOT/$lang/assets/config.js; done && exec catalina.sh run" ]