-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add alias property in KeyStore options for net/http servers #3933
Conversation
Fixes eclipse-vertx#3926 This can be useful if users don't control the JKS file and it contains multiple entries. In this case, the SSL engine chooses the first one by default but it might not what the user expects. Signed-off-by: Thomas Segismont <[email protected]>
I think we can avoid it since, the user simply should not set an alias on a
client JKS options
…On Wed, May 19, 2021 at 3:56 PM Thomas Segismont ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/main/java/io/vertx/core/net/KeyCertOptions.java
<#3933 (comment)>:
> @@ -39,6 +39,17 @@
*/
KeyManagerFactory getKeyManagerFactory(Vertx vertx) throws Exception;
+ /**
+ * Like ***@***.*** #getKeyManagerFactory}, except the underlying keystore can be filtered.
+ * <p>
+ * This should be called only when creating a ***@***.*** KeyManagerFactory} for a TCP or HTTP server.
+ *
+ * @param vertx the vertx instance
+ * @return the key manager factory
+ * @see JksOptions#setAlias(String)
+ */
+ KeyManagerFactory getKeyManagerFactory(Vertx vertx, boolean filter) throws Exception;
Yes
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#3933 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABXDCTOCDSH2AQREAFGAG3TOO7SFANCNFSM45EWQSYQ>
.
|
Then we don't need to overload keystore loading methods Signed-off-by: Thomas Segismont <[email protected]>
Done
… |
shouldn't this option also apply to keystore in general ? e.g it should work too for |
@tsegismont can you make this option generic for any |
Signed-off-by: Thomas Segismont <[email protected]>
@vietj PTAL |
Signed-off-by: Thomas Segismont <[email protected]>
I think we are missing in |
@vietj I think I made them valid for the next 100 years ;-) But point taken. |
Signed-off-by: Thomas Segismont <[email protected]>
@vietj done |
waiting for CI green light and then we can merge this |
Fixes eclipse-vertx#3970 In eclipse-vertx#3933 we added an alias property to keystore options that allows to choose a keystore entry when there are several instead of letting the JVM selecting the first one. This is a follow-up change that allows to specify a password for the alias when it is different than the store's password. Signed-off-by: Thomas Segismont <[email protected]>
Fixes #3926
This can be useful if users don't control the JKS file and it contains
multiple entries.
In this case, the SSL engine chooses the first one by default but it
might not be what the user expects.