Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix keystore storepass error exception #194

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cws-installer/src/main/java/jpl/cws/task/CwsInstaller.java
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ private static void getKeystorePassword() {
try {
cws_keystore_storepass = Files.readString(Paths.get(storepassFilePath)).trim();
} catch (IOException e) {
e.printStackTrace();
log.error("Read-in Keystore Storepass ERROR: " + e.getMessage());
}
}
}
Expand Down Expand Up @@ -2511,9 +2511,10 @@ private static int validateKeystoreTruststore() {
}
} catch (Exception e) {
print(" [WARNING]");
print(" The path '" + cws_tomcat_conf + SEP + "' may not contain .keystore file or holds an invalid keystore.");
print(" The path '" + cws_tomcat_conf + SEP + "' ");
print(" may NOT contain .keystore file OR holds a keystore that is mismatched with password in '~/.cws/creds' or cws_keystore_storepass configuration.");
print("");
e.printStackTrace();
log.error("Keystore Storepass ERROR: " + e.getMessage());
return 1;
}
return 0; // OK
Expand Down
Loading