I inherited an installation of TeamCity and today the SSL certificate expired. I renewed the cert with the following commands I found in some documentation.
as user teamcity:
keytool -genkey -alias tomcat -keyalg RSA
keytool -export -alias tomcat -file file.cer
keytool -import -alias tomcat -file /path/file.cer -keystore $JAVA_HOME/path/cacerts
service restart teamcity
The first keytool failed with I entered a password, saying the keystore has been tampered with, (I don't have the original password)
I moved the file.cer and .keystore files and ran the command again. This time it showed no errors.
I move the cacerts file and ran the import, again, no errors showed up.
After the service restart, I waited a long time, but the web interface says service temporarily unavailable. Apache error message.
Engineers are waiting. Does any one have any hints as to the problem?