From the course: Learning Apache Tomcat

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Set up web encryption

Set up web encryption - Tomcat Tutorial

From the course: Learning Apache Tomcat

Set up web encryption

- [Instructor] Now that we know how web encryption works, let's set up a self-signed certificate on our Tomcat server. There are some very simple instructions for setting this up in the Tomcat documentation; I'll be following those, and I'll just talk about what's happening. So we want to run this as sudo because the final result needs to be owned by root. The command we're using is keytool, and this actually comes with Java. You can do this right out of the box. We'll use dash genkey which means we're generating a key, and I'll use the dash alias flag to create an alias of Tomcat. Then I'll use dash keyalg which is setting the algorithm, in this case the encryption algorithm is RSA in all caps, and then I just need to set the destination of my keystore, with the keystore flag. And the destination I'm going to use is slash etc slash Tomcat eight slash keystore, and I'll hit enter. Now this starts an interactive set of prompts that are going to lead me through setting up my…

Contents