Add new comment

Quickly create and implement a self signed cert for Tomcat...

Create keystore with a self signed cert

keytool -genkey -keystore /path/keystore.jks -alias selfsigned -keyalg RSA -keysize 4096 -validity 720

Enter details for cert and enter password = password123

Update Tomcat server.xml


Verify

https://192.168.1.10:8443/
Should return this:

Bad Request
This combination of host and port requires TLS.

https://192.168.1.10:8443/
Returns:
Warning that cert is not signed by an authority.
But HTTPS is used

Reference:
Using Tomcat 9.x, Java 1.8
Java: Create self-signed SSL certificates for Tomcat