Hi, as the forum suggests, I'm a newbie so please bear with me :)
I installed VirtualMin on my VPS, added letsencrypt and set it to renew every 2 months. So far so good.
I wanted to use it also for my tomcat, so I did the following: certbot certonly --standalone -d foo.example.com (I had to shut down tomcat or apache to make it work, any chance someone here remembers which?) and then I executed this: cd /etc/letsencrypt/live/yourdomain.com openssl pkcs12 -export -out bundle.pfx -inkey privkey.pem -in cert.pem -certfile chain.pem -password pass:... and changed the connector of tomcat accordingly to use the bundle.pfx fike, again, so far so good.
Now I want to automate all this after VirtualMin does his renewal. This is where I go back in time to remind you that I'm a newbie. How can I automate those steps after virtualmin does his magic? Thanks!
Any kind of help will be appreciated, if this is not the right forum, please direct me to the right one, thanks :)
I'm a bit lost and feel left out, can anyone please explain how come no one answers my question? Did I ask it wrong? Thanks
Probably no-one uses tomcat that knows how to help you. Given you are manually generating the cert and "changing the connector of tomcat...", it sounds like you would need to script something and possibly add it to crontab. Perhaps a visit to a tomcat support forum and asking how to automatically update the cert could be a starting point.
Thanks, I couldn't really find a real forum that supports tomcat, they have all kind of wikis that I got lost in. Isn't it something that virtualmin does by itself and I can use it for this as well?