Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

TrustStoreType property overrides value of KeyStoreType property #562

Open
hhund opened this issue Jun 17, 2022 · 0 comments
Open

TrustStoreType property overrides value of KeyStoreType property #562

hhund opened this issue Jun 17, 2022 · 0 comments

Comments

@hhund
Copy link

hhund commented Jun 17, 2022

The SSLContextBuilder#setKeyStoreType method is called twice, with the KeyStoreType property and with the TrustStoreType property. The later overriding the value of the former, if both are defined. FYI: The SSLContextBuilder class does not have an equivalent setTrustStoreType method.

if (properties.getKeyStoreType() != null) {
builder.setKeyStoreType(properties.getKeyStoreType());
}

if (properties.getTrustStoreType() != null) {
builder.setKeyStoreType(properties.getTrustStoreType());
}

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

No branches or pull requests

1 participant