From 907ab4b87d91dd03cb0ab3ed8319228ca6545f7d Mon Sep 17 00:00:00 2001 From: Milan Perera Date: Sun, 6 Aug 2017 23:03:54 +0530 Subject: [PATCH] Added jwt public cert to client truststore from the change-ip scipt --- modules/scripts/change-ip.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/scripts/change-ip.sh b/modules/scripts/change-ip.sh index 2fe96271..9f7f6147 100644 --- a/modules/scripts/change-ip.sh +++ b/modules/scripts/change-ip.sh @@ -500,5 +500,12 @@ if [ -e "../conf/identity/identity-providers/iot_default.xml-e" ]; then rm -f ../conf/identity/identity-providers/iot_default.xml-e fi +echo "" +echo "Storing JWT public cert in client truststore" +keytool -exportcert -alias wso2carbon -keystore ../repository/resources/security/wso2carbonjwt.jks -rfc -storepass wso2carbon -file ./tmp/jwtcert +keytool -importcert -alias wso2carbonjwt -keystore ../repository/resources/security/client-truststore.jks -storepass wso2carbon -file ./tmp/jwtcert -noprompt + +sed -i -e 's/.*/wso2carbonjwt<\/Parameter>/' ../conf/etc/webapp-authenticator-config.xml + echo "" echo "Configuration Completed!!!"