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.
- Host: GitHub
- URL: https://github.com/bluelotussoftware/tomcat-embedded-ssl-example
- Owner: bluelotussoftware
- License: apache-2.0
- Created: 2016-02-29T13:43:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-06-16T17:47:22.000Z (almost 5 years ago)
- Last Synced: 2024-07-30T20:54:28.208Z (almost 2 years ago)
- Topics: apache-tomcat, certificate, embedded, keystore, ssl, tls, tomcat8
- Language: Java
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.