Professional Documents
Culture Documents
ANS Tutorial 01
ANS Tutorial 01
1|Page
1. Configure the Apache tomcat Web server to support HTTPS. Generating self-signed
certificate using keytool,
sudo keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass password -validity
360 -keysize 2048
2|Page
Download Apache and set catalina.sh for execution
Configure server.xml file with self-signed certificate and port 8443 to run in TLS
Run catalina.sh,
3|Page
Connect to web server localhost with port 8443. It says “Your connection is not secure” due to self-
signed certificate,
4|Page
Accepting Security Exception,
5|Page
After accepting exception,
Self-signed certificate,
6|Page
2. Log the SSL handshake messages to a log file. Can you identify the SSL/TLS handshake
steps on the log?
Configure catalina.sh to print SSL debug messages when browser is communicating with Server,
7|Page
Print debug messages to a text file called “sslhstest.log”,
8|Page
Certificate,
ServerKeyExchange,
9|Page
ClientKeyExchange,
10 | P a g e