Tuesday, 18 February 2014
Running Jenkins on Tomcat with SSL
1) Download java rpm using wget. ( Download java using wget )
2) Login root using su root. Then install it using rpm -ivh rpmname.rpm
3) Be sure that you can access java, javac, keytool commands.
4) Download tomcat and jenkins
5) Move jenkins var to tomcat webapps dir using mv jenkins.war ${TOMCAT_DIR}/webapps
6) Create self signed certificate using keytool -genkey -alias tomcat -keyalg RSA -keystore ${KEYSTORE_FILE_PATH} -validity 365
7) It is going to ask questions about your organisation and such. Please answer them. Pick your password as well
8) In ${TOMCAT_DIR}/conf/server.xml find the line starting with <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"... Uncomment it and add the following attribute values keystoreFile="${KEYSTORE_FILE_PATH}" keystorePass="password"
9) Start tomcat using ${TOMCAT_DIR}/bin/startup.sh. Check both http://localhost:8080/jenkins and http://localhost:8443/jenkins if everything is ok.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment