Skip to content

Commit

Permalink
Merge pull request #51 from privacybydesign/convert-rsa
Browse files Browse the repository at this point in the history
Convert to .der on the fly
  • Loading branch information
DibranMulder authored Dec 5, 2024
2 parents 26b3143 + 909089e commit f6ea907
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,9 +30,11 @@ COPY --from=javabuild /app/build/libs/irma_email_issuer.war /usr/local/tomee/web
COPY ./src/main/resources/email-en.html /email-templates/email-en.html
COPY ./src/main/resources/email-nl.html /email-templates/email-nl.html

RUN mkdir /usr/local/keys

ENV IRMA_CONF="/config/"
ENV EMAIL_TEMPLATE_DIR="/email-templates/"
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 f6ea907

Please sign in to comment.