Commit bb210cc6 authored by Günther Niess's avatar Günther Niess Committed by niess

OF-30: Don't overwrite the TrustStore.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11493 b35dd754-fafc-0310-a699-88a17e54d16e
parent ad0270fa
......@@ -315,8 +315,11 @@ public class SSLConfig {
keyStore = KeyStore.getInstance(storeType);
keyStore.load(null, keypass.toCharArray());
s2sTrustStore = KeyStore.getInstance(storeType);
s2sTrustStore.load(null, s2sTrustpass.toCharArray());
// Also generate the trustStore if necessary
if (s2sTrustStore == null) {
s2sTrustStore = KeyStore.getInstance(storeType);
s2sTrustStore.load(null, s2sTrustpass.toCharArray());
}
}
catch (Exception e) {
Log.error("Unable to initialize keystore: ", e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment