10

I want to use certificates from Let's Encrypt with a large count of Jetty servers. One of the problems is that the certificates from Let's Encrypt has a lifetime of 90 days.

To handle this the Jetty server or some extra code must renew the certificate frequently.

  • Can Jetty handle this self? If yes how can I enable this?
  • If I need to implement it self with a Java client then how can I replace the certificate dynamically via Jetty API without a restart of the Jetty server?

Edit: Some related and partial helpful links:

Community
  • 1
  • 1
Horcrux7
  • 23,758
  • 21
  • 98
  • 156

1 Answers1

5

Since version 9.3.15 you can use:

SslContextFactory.reload(Consumer<SslContextFactory>)

For details see at: https://github.com/eclipse/jetty.project/issues/918

Horcrux7
  • 23,758
  • 21
  • 98
  • 156