Chapter 14 Configuring SSL

Secure Socket Layer (SSL) allows web browsers and web servers to communicate over a secured connection. SSL encrypts the data being sent from one side and decrypts the data on the other side. Servers and browsers encrypts all traffic before sending data out.

Follow these steps to install and configure SSL support on Tomcat:

1. Execute the following command to create a certificate keystore:

  • Windows:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
  • Unix:
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA

2. Remove the comment of SSL HTTP/1.1 Connector entry in $CATALINA_HOME/conf/server.xml.

3. Tweak if needed.


  • Currently 3.01/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
  Flag Inappropriate Content 0 comments