Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 855 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 855 Bytes

tomcat-embedded-ssl-example

An example implementation of embedded Apache Tomcat 8.5 with SSL/TLS.

Required Software

  • Apache Maven 3.3
  • Java 8 (Java 7 requires changing the POM)

Running the application

Execute the following command from Maven:

mvn clean compile exec:java -Dexec.mainClass=com.bluelotussoftware.tomcat.Main

Then go to https://localhost:8443/hello or https://localhost:8443/web/hello for annotated Servlet 3.0 API web application.

Changing Certificate

You may change the certificate in the application by adding your new certificate to the existing keystore.jks, replacing it with a new keystore with certificate, or adding your own keystore and modifying the TomcatEmbeddedRunner.class. Please see that class for more details.