Hi, I'm a real noob when it comes to Tomcat so I apologise in advance! I'm having a real issue trying to get a web application to run under HTTPS. I've followed the Apache Tomcat 8.5.4 guide on how to configure SSL, but I just keep getting errors. To the point where I blew the server away and have tried again.
My issue seems to be getting a definitive answer with how the server.xml file should be configured. I see a lot about filling in the <connector> tag but then the guide speaks of those commands being deprecated and run inside the <SSLHostConfig> tag. I had issues with the keystore being tampered with or incorrect password, then a duplicate hostname being present, once I sorted that (at least thought I had!) the apache server starts but when I try to hit the site on https://<site>:8443 it just spins and never starts. After the rebuild I have the duplicate hostname: "Multiple SSLHostConfig elements were provide for the host name [_default_]. Host names must be unique". Below is an example of what I have in server.xml:
<!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
This connector uses the NIO implementation with the JSSE engine. When
using the JSSE engine, the JSSE configuration attributes must be used.