To enable SSL at different JVM instances and also for other security related purposes I use different Java keystores at different hosts. Until now I put each key into one keystore. For security and maintenance reasons as well and also to use more than one key in different use cases in one JVM, I want to group the keys for each JVM into one keystore.
My Question: How do I select a certain key for different use cases, if I put more than one key into a keystore?
The Question in detail: If I setup JMX over SSL for remote monitoring, which key will the JVM use for the JMX-Session if the JVM-property javax.net.ssl.keyStore points to a keystore that holds multiple keys?