I have a REST app written in Java using Jetty Embedded, running on a Heroku environment. I would like to force all traffic to go through HTTPS. There are some good answers on how to achieve this such as this one and this one. However, all answers require the TLS/SSL certificate to be read from a file. I would like to use Heroku's Automated Certificate Management (details here) to avoid having to renew certificates every year as they expire. Using ACM means that I do not have access to the certificate file.
Is there any way to configure Jetty to force HTTPS without reading the certificate from a file, or somehow to still be able to use Heroku ACM?