Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Updating SSL keystore

On 09/02/2017 12:34, Simone Bordet wrote:
You cannot extract server information from within a webapp, so your
solution of using a ServletContextListener will not work.

Hmm, didn't know that. Is there a reason why not?

What you need to do is to customize the server configuration.

You can create a subclass of org.eclipse.jetty.util.PathWatcher, and
instantiate that in a Jetty XML file that you reference from a custom
Jetty module.

I know it's a bit vague, I'll try to find some time to whip up a
complete example and document it.
See also https://github.com/eclipse/jetty.project/issues/1319.

That would be very welcome. I imagine I'm not the only one who would want to know how to do this (e.g. anyone using Let's Encrypt certificates would probably be interested)...

Many thanks,
--
John English


Back to the top