An open API service indexing awesome lists of open source software.

https://github.com/bluelotussoftware/tomcat-embedded-ssl-example

An example implementation of embedded Apache Tomcat 8.5 with SSL/TLS.
https://github.com/bluelotussoftware/tomcat-embedded-ssl-example

apache-tomcat certificate embedded keystore ssl tls tomcat8

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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.