-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Let user to provide own KeyManager and TrustManager for HTTPS server #27481
Comments
@dmlloyd Hi David, I recall you were looking at some options awhile back, to provide custom factories dealing with SSL ? Sorry if it was not related |
I found interesting PR #26767 that @cescoffier has kindly contributed quite recently. I'm testing this with Quarkus 2.12.0.CR1. It works very nicely even for setting own keymanager that has hot-certificate-reload capability: @ApplicationScoped
public class VertxCustomizer implements HttpServerOptionsCustomizer {
@Override
public void customizeHttpsServer(HttpServerOptions options) {
// First do whatever is required to create custom keymanager.
...
// Set it to VertX HttpServerOptions
KeyCertOptions kco = KeyCertOptions.wrap((X509KeyManager) km);
options.setKeyCertOptions(kco);
}
} As far as I can see, I still have to define server certificate in Is there any workaround that I could use to avoid setting the certificates in |
IIRC what I was looking at was providing a single configuration strategy for TLS. Using the Elytron APIs we can plug in handlers for customized authentication and other things, at abstraction points that are more logical than replacing the trust manager and key manager. I'd have to review whether that would in turn allow support for hot-swapping certificates, but it seems feasible at least. |
Currently the Lines 662 to 664 in 36ea30a
But if user does not set certificate & key or keystore in Lines 844 to 857 in 36ea30a
That makes it impossible for the implementer of Would it be acceptable to allow |
I have submitted #27682 to allow application to set custom |
Description
Let user provide their own custom
KeyManager
andTrustManager
, which would be used for the HTTPS server (by Vert.x).This could allow implementing certificate hot-reload #15926 in the application side.
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: