Today my friend wanted to setup HTTPS implementation on his tomcat server. So here how we did it. Installing Tomcat on Ubuntu 11.04 ahmed@ubuntu:~$ sudo apt-get install tomcat6 ahmed@ubuntu:~$ sudo apt-get install tomcat6-admin Here is complete information on howto install tomcat on Ubuntu 11.04. https://help.ubuntu.com/11.04/serverguide/C/tomcat.html Next once we have tomcat installed here is what we need to do. Creating KeyStore File ahmed@ubuntu:~$ keytool -genkeypair -alias tomcat -keyalg RSA -keysize 1024 -dname "CN=localhost, OU=Organization, O=Company Name, L=City, S=State, C=US" -validity 365 -keystore keystore Enter keystore password: <enter a new password here> Enter key password for <tomcat> (RETURN if same as keystore password): <just hit enter here> The password you enter in the first password prompt will be the password for the " keystore " file where your server certificate i...