Many steps in this guide but looks like the promising approach and a tool described.
No need to read docs there, only to follow the attached steps.
I did not try it.
https://danielflower.github.io/2017/04/08/Lets-Encrypt-Certs-with-embedded-Jetty.html