Added jwt public cert to client truststore from the change-ip scipt

This commit is contained in:
Milan Perera 2017-08-06 23:03:54 +05:30
parent 089cf7fa5d
commit 907ab4b87d

View File

@ -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 rm -f ../conf/identity/identity-providers/iot_default.xml-e
fi 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/<Parameter Name="wso2.org\/products\/iot">.*/<Parameter Name="wso2.org\/products\/iot">wso2carbonjwt<\/Parameter>/' ../conf/etc/webapp-authenticator-config.xml
echo "" echo ""
echo "Configuration Completed!!!" echo "Configuration Completed!!!"