Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot Reloading Trusstore and Keystore in Jetty Embedded Server and Client #12765

Open
dev-chirag opened this issue Feb 4, 2025 · 2 comments
Open
Labels

Comments

@dev-chirag
Copy link

Jetty Version
12.x
Jetty Environment

Java Version
17.x
Question

I read this #918 for reloading Keystores in Jetty server without restarting the server.

But is there anything to reload the Truststore in Server and also the Keystore and Truststore in the client?

Thanks,
Chirag

@sbordet
Copy link
Contributor

sbordet commented Feb 4, 2025

Reloading Jetty's SslContextFactory reloads everything you have configured on it.

If you configured only the KeyStore with private key and certificates, it will reload that KeyStore.
If you configured it with KeyStore and TrustStore, it will reload both.

@dev-chirag
Copy link
Author

Thanks @sbordet , that makes sense. Although I got this working for my embedded server, would the same thing work for clients as well?

Or do I need to stop/start the HTTPClient on reload?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants