From dc52c0a11ed2a79c9a40f6caec175db683131ff5 Mon Sep 17 00:00:00 2001 From: Chris Preston Date: Tue, 14 May 2024 17:19:47 -0700 Subject: [PATCH] Fix for key replacement --- cirras-underwriting-api/Dockerfile | 2 +- cirras-underwriting-war/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cirras-underwriting-api/Dockerfile b/cirras-underwriting-api/Dockerfile index 24aef118..835ce318 100644 --- a/cirras-underwriting-api/Dockerfile +++ b/cirras-underwriting-api/Dockerfile @@ -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 diff --git a/cirras-underwriting-war/Dockerfile b/cirras-underwriting-war/Dockerfile index f5f244e9..e9b3987e 100644 --- a/cirras-underwriting-war/Dockerfile +++ b/cirras-underwriting-war/Dockerfile @@ -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