Just a quick update...
I have been able to raise a NGINX web server as a reverse proxy to allow for automated SSL renewals, then forward the request to tomcat running as a restricted user. Works well and avoids the hard shutdown of tomcat to renew the certificates.
Basically the following was done (i'll write it up later).
Option 1.
- Install NGINX
- Config NGINX to serve as the front end server on ports 80 and 443
- Setup LetsEncrypt for SSL certs and redirect port 80 to 443
- Pass port 443 to backend server (tomcat) listening on an alternative port.
- Install AwareIM
- Setup restricted user , disable shell access
- Setup appropriate groups
- Setup cronjob to auto renew SSL.
- Beers.
If you don't have a requirement to run a reverse proxy infront of AwareIM and want tomcat exposed as the primary then you'll need to use 'authbind' to allow restricted users to launch services. This gets around the higher administrative credentials.
There is two more additional scenario that i want to test and that will be supporting 'virtual hosts' so that i can have multiple domains from one front application server and the other will be load balancing the requests.