2

Trying to perform SSL client auth using JSSE, by initializing a SSLContext using a KeyManagerFactory, which is created using a Keystore.

This works fine if the Keystore has 1 certificate, but if it contains 2 different certificates issued by the same issuer, how can I tell SSLContext which certificate to use?

1 Answer 1

3

Install your own X509KeyManager into the SSLContext, with your desired implementation of the chooseClientAlias() method.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.