Community
Participate
Working Groups
SslContextFactory#setKeyStore(java.security.KeyStore) sets the _keyStore field. That field (among other _keyStore* fields) is used in loadKeyStore(), which is only used in the "you've configured a keystore" of doStart() (L247). However, the "you haven't configured a keystore" branch of doStart() is used mistakenly since L210-211 do not check if _keyStore was set, only if the other _keyStore* fields: if (_keyStoreInputStream == null && _keyStorePath == null && _trustStoreInputStream == null && _trustStorePath == null )
Allow the KeyStore to be set. Also allow TrustAll to be set, so if it is false and no keystore and truststore is set, then null is passed and the defaults used.