I am trying to set up Tomcat with SSL.
In order to do so I am supposed to run the command 'keytool -genkey -alias tomcat -keyalg RSA' but when I do so I get the error 'keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect'.
I am unsure what password to specify when I am prompted by the command.
The documentation I have suggests that I should use the password '"changeit"
That depends on which keystore you are trying to update. If it is one of the default ones that comes with the JRE, then it is 'changeit' but other keystores will have whatever password was used when they were created. You did not explicitly specify which keystore to update, so it is probably trying to find one in your user's home directory which is probably not the tomcat keystore. Just create a new keystore with a password you pick yourself.