I have an HTTPS endpoint that requires a client certificate(mutual TLS).
I have created a keystore
using KeyStore Explorer
tool and inserted the client certificate and private key into it(entry has an alias, that is some random string).
Then I have attached that keystore to RestTemplate and my question is the following:
How the right entry(certificate) is picked up from keystore when the call is made to a particular endpoint ? What if I have multiple certificates inserted into keystore so that each of them should be picked up only in case when request is made to an appropriate endpoint(domain).