//add code to change all the aliases that exist rather then change s1as only
List<String> aliases = new ArrayList<String>();
try {
KeyStore keyStore = KeyStore.getInstance(keyStoreType);
keyStore.load(new FileInputStream(keystore), storePassword.toCharArray());
Enumeration<String> all = keyStore.aliases();
while (all.hasMoreElements()) {
aliases.add(all.nextElement());
}
} catch (Exception e) {
aliases.add(CERTIFICATE_ALIAS);