Better checking of keystore credentials.

Make it so that when a new keystore is generated or any action that
triggers a call to "add_my_cert_to_truststore" that the passwords are
checked and adjusted accordingly.