case classKeystoreSettings(keystore: String, keystorePass: String, truststore: String, truststorePass: String) extends IKeystoreSettings with Product with Serializable
sys.props("javax.net.ssl.keyStore") = keystorePath etc
This class is not thread-safe.
Note: Modules registering key/truststores using this object will trust all other truststores,
in particular also truststores registered by other modules.
Therefore, registering keystores like this is not recommended in multi-module applications unless no other option exists,
since module A may inadvertedly trust a truststore registered by module B, which is hardly ever desired.
A "module" is in this context something that uses truststores/keystores.
See also
http://stackoverflow.com/questions/1793979/registering-multiple-keystores-in-jvm for some early inspiration
Manages multiple different keystores/truststores for one JVM instance.
Removes the reliance on system properties to get SSL to work.
Usage:
MultiKeyStoreManager.registerKeyStores(IKeystoreSettings)
instead of:sys.props("javax.net.ssl.keyStore") = keystorePath
etc This class is not thread-safe. Note: Modules registering key/truststores using this object will trust all other truststores, in particular also truststores registered by other modules. Therefore, registering keystores like this is not recommended in multi-module applications unless no other option exists, since module A may inadvertedly trust a truststore registered by module B, which is hardly ever desired. A "module" is in this context something that uses truststores/keystores.
http://stackoverflow.com/questions/1793979/registering-multiple-keystores-in-jvm for some early inspiration