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

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
           maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
           clientAuth="false" sslProtocol="TLS"
           keyAlias="selfsigned" keystoreFile="/path/keystore.jks"
           keystorePass="password123" />

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