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 Should return this:
Bad Request
This combination of host and port requires TLS. Returns: Warning that cert is not signed by an authority. But HTTPS is used


Using Tomcat 9.x, Java 1.8

Java: Create self-signed SSL certificates for Tomcat

Add new comment