Skip to content

Commit

Permalink
Fix for key replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
vivid-cpreston committed May 15, 2024
1 parent 85f6daa commit dc52c0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cirras-underwriting-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN rm -rf /usr/local/tomcat/webapps/ROOT &&\
keytool -genkeypair -keyalg RSA -alias tomcat -keystore conf/selfsigned.jks -validity 365 -keysize 2048 -dname "cn=Unknown, ou=Unknown, o=Unknown, c=Unknown" -keypass $SECRET_KEY -storepass $SECRET_KEY &&\
keytool -export -alias tomcat -file conf/selfsigned.crt -keystore conf/selfsigned.jks -storepass $SECRET_KEY &&\
keytool -import -noprompt -trustcacerts -alias tomcat -file conf/selfsigned.crt -keystore conf/selfsigned.ts -storepass $SECRET_KEY &&\
sed -i 's/SECRET_KEY/$SECRET_KEY/' conf/server.xml
sed -i "s/SECRET_KEY/$SECRET_KEY/" conf/server.xml

USER tomcat

Expand Down
2 changes: 1 addition & 1 deletion cirras-underwriting-war/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN rm -rf /usr/local/tomcat/webapps/ROOT &&\
keytool -genkeypair -keyalg RSA -alias tomcat -keystore conf/selfsigned.jks -validity 365 -keysize 2048 -dname "cn=Unknown, ou=Unknown, o=Unknown, c=Unknown" -keypass $SECRET_KEY -storepass $SECRET_KEY &&\
keytool -export -alias tomcat -file conf/selfsigned.crt -keystore conf/selfsigned.jks -storepass $SECRET_KEY &&\
keytool -import -noprompt -trustcacerts -alias tomcat -file conf/selfsigned.crt -keystore conf/selfsigned.ts -storepass $SECRET_KEY &&\
sed -i 's/SECRET_KEY/$SECRET_KEY/' conf/server.xml
sed -i "s/SECRET_KEY/$SECRET_KEY/" conf/server.xml

USER tomcat

Expand Down

0 comments on commit dc52c0a

Please sign in to comment.