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

Add alias property in KeyStore options for net/http servers #3933

Merged
merged 5 commits into from
May 20, 2021

Conversation

tsegismont
Copy link
Contributor

@tsegismont tsegismont commented May 19, 2021

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.

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]>
@vietj
Copy link
Member

vietj commented May 19, 2021 via email

Then we don't need to overload keystore loading methods

Signed-off-by: Thomas Segismont <[email protected]>
@tsegismont
Copy link
Contributor Author

tsegismont commented May 19, 2021 via email

@vietj
Copy link
Member

vietj commented May 19, 2021

shouldn't this option also apply to keystore in general ? e.g it should work too for PfxOptions or the generic KeyStoreOptions new in 4.0

@vietj vietj added this to the 4.1.0 milestone May 19, 2021
@vietj
Copy link
Member

vietj commented May 20, 2021

@tsegismont can you make this option generic for any java.security.Keystore ?

@tsegismont tsegismont requested a review from vietj May 20, 2021 08:09
@tsegismont
Copy link
Contributor Author

@vietj PTAL

@tsegismont tsegismont changed the title Add alias property in JksOptions for net/http servers Add alias property in KeyStore options for net/http servers May 20, 2021
Signed-off-by: Thomas Segismont <[email protected]>
@vietj
Copy link
Member

vietj commented May 20, 2021

I think we are missing in ssl.txt the steps you did to create the new keystore, so when it gets invalid, anyone knows the procedure to generate it.

@tsegismont
Copy link
Contributor Author

@vietj I think I made them valid for the next 100 years ;-) But point taken.

@tsegismont
Copy link
Contributor Author

@vietj done

@vietj
Copy link
Member

vietj commented May 20, 2021

waiting for CI green light and then we can merge this

@vietj vietj merged commit e50ec39 into eclipse-vertx:master May 20, 2021
@tsegismont tsegismont deleted the filter_ks branch June 3, 2021 12:55
tsegismont added a commit to tsegismont/vert.x that referenced this pull request Jun 22, 2021
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please enhance JksOptions to support selection of SSL key in keystore using an alias property
2 participants