Skip to content

Commit

Permalink
Convert to .der on the fly
Browse files Browse the repository at this point in the history
  • Loading branch information
DibranMulder committed Dec 5, 2024
1 parent b602226 commit 32cd9bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit 32cd9bc

Please sign in to comment.