Is there a way to tell the the client what alias to use?
Hi Dan,
Are you referring to the use of keyStore for JKS SSL ?
Normally, in your Java application you specify these settings as system properties, see below example:
System.setProperty("javax.net.ssl.trustStoreType", "jks");
System.setProperty("javax.net.ssl.trustStore", "/path/to/mongodb-truststore.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "password");
System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
System.setProperty("javax.net.ssl.keyStore", "/path/to/client.pkcs12");
System.setProperty("javax.net.ssl.keyStorePassword", "password");
If you look at the Customisation section for the JSSE (v8) Guide, there is no Java.net.ssl for alias or keyStoreAlias property settings. Also these are set on the Java side itself, not on the driver side. Your application has to load them explicitly.
If you still have further questions, please provide code examples and setup on what you’re trying to do.
Regards,
Wan.