Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
2627ce25
Commit
2627ce25
authored
Nov 03, 2015
by
Guus der Kinderen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-946: Preventing a NPE. Also: Keystore config must have password.
parent
793b046b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
Purpose.java
src/java/org/jivesoftware/openfire/keystore/Purpose.java
+1
-1
SSLConfig.java
src/java/org/jivesoftware/openfire/net/SSLConfig.java
+7
-2
No files found.
src/java/org/jivesoftware/openfire/keystore/Purpose.java
View file @
2627ce25
...
...
@@ -226,7 +226,7 @@ public enum Purpose
public
String
getCipherSuitesDisabled
()
{
final
String
propertyName
=
prefix
+
"ciphersuites.disabled"
;
final
String
defaultValue
=
null
;
final
String
defaultValue
=
""
;
if
(
fallback
==
null
)
{
...
...
src/java/org/jivesoftware/openfire/net/SSLConfig.java
View file @
2627ce25
...
...
@@ -532,8 +532,13 @@ public class SSLConfig
{
final
SslContextFactory
sslContextFactory
=
new
SslContextFactory
();
sslContextFactory
.
setTrustStore
(
SSLConfig
.
getTrustStore
(
purpose
)
);
sslContextFactory
.
setKeyStore
(
SSLConfig
.
getIdentityStore
(
purpose
)
);
final
TrustStoreConfig
trustStoreConfig
=
SSLConfig
.
getInstance
().
getTrustStoreConfig
(
purpose
);
sslContextFactory
.
setTrustStore
(
trustStoreConfig
.
getStore
()
);
sslContextFactory
.
setTrustStorePassword
(
trustStoreConfig
.
getPassword
()
);
final
IdentityStoreConfig
identityStoreConfig
=
SSLConfig
.
getInstance
().
getIdentityStoreConfig
(
purpose
);
sslContextFactory
.
setKeyStore
(
identityStoreConfig
.
getStore
()
);
sslContextFactory
.
setKeyStorePassword
(
identityStoreConfig
.
getPassword
()
);
// Configure protocol and cipher suite support.
if
(
purpose
.
getProtocolsEnabled
()
!=
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment