I recently had to add my corporate root CA (based on AD CS) into the JRE default truststore (the $JAVA_HOME/lib/security/cacerts
file). I then discovered (as I am new to this) that the default password is changeit
.
I found various posts explaining how to change it but there are two questions I can't find answers to:
- Is keeping the default password a security risk? I guess an attacker could then import compromised certificates so clients trust them
- What are the impacts of changing this truststore password? I also guess the JRE can look for root CA inside because it knows the default password. Once changed, will it have to be provided somewhere (config file, ...)?
We mainly use Java on Windows for websites which have applets, so we don't start anything from the command line (on which I know the password can be provided).