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
0d9378d5
Commit
0d9378d5
authored
Nov 30, 2015
by
Guus der Kinderen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge leftovers
parent
3b625223
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
SASLAuthentication.java
...ava/org/jivesoftware/openfire/net/SASLAuthentication.java
+5
-4
CertificateManager.java
src/java/org/jivesoftware/util/CertificateManager.java
+1
-1
No files found.
src/java/org/jivesoftware/openfire/net/SASLAuthentication.java
View file @
0d9378d5
...
...
@@ -195,8 +195,8 @@ public class SASLAuthentication {
// Server connections don't follow the same rules as clients
if
(
session
.
isSecure
())
{
LocalIncomingServerSession
svr
=
(
LocalIncomingServerSession
)
session
;
final
KeyStore
keyStore
=
SSLConfig
.
getStore
(
Purpose
.
SOCKETBASED_IDENTITYSTORE
);
final
KeyStore
trustStore
=
SSLConfig
.
getStore
(
Purpose
.
SOCKETBASED_S2S_TRUSTSTORE
);
final
KeyStore
keyStore
=
svr
.
getConnection
().
getConfiguration
().
getIdentityStore
().
getStore
(
);
final
KeyStore
trustStore
=
svr
.
getConnection
().
getConfiguration
().
getTrustStore
().
getStore
(
);
final
X509Certificate
trusted
=
CertificateManager
.
getEndEntityCertificate
(
svr
.
getConnection
().
getPeerCertificates
(),
keyStore
,
trustStore
);
boolean
haveTrustedCertificate
=
trusted
!=
null
;
...
...
@@ -574,8 +574,9 @@ public class SASLAuthentication {
return
Status
.
failed
;
}
final
KeyStore
keyStore
=
SSLConfig
.
getStore
(
Purpose
.
SOCKETBASED_IDENTITYSTORE
);
final
KeyStore
trustStore
=
SSLConfig
.
getStore
(
Purpose
.
SOCKETBASED_C2S_TRUSTSTORE
);
final
KeyStore
keyStore
=
connection
.
getConfiguration
().
getIdentityStore
().
getStore
();
final
KeyStore
trustStore
=
connection
.
getConfiguration
().
getTrustStore
().
getStore
();
final
X509Certificate
trusted
=
CertificateManager
.
getEndEntityCertificate
(
connection
.
getPeerCertificates
(),
keyStore
,
trustStore
);
if
(
trusted
==
null
)
{
...
...
src/java/org/jivesoftware/util/CertificateManager.java
View file @
0d9378d5
...
...
@@ -359,7 +359,7 @@ public class CertificateManager {
* @return true if a certificate with the specified configuration was found in the key store.
* @throws KeyStoreException
*/
private
static
boolean
isCertificate
(
CertificateStore
Config
storeConfig
,
String
domain
,
String
algorithm
)
throws
KeyStoreException
{
private
static
boolean
isCertificate
(
CertificateStore
storeConfig
,
String
domain
,
String
algorithm
)
throws
KeyStoreException
{
for
(
Enumeration
<
String
>
aliases
=
storeConfig
.
getStore
().
aliases
();
aliases
.
hasMoreElements
();)
{
X509Certificate
certificate
=
(
X509Certificate
)
storeConfig
.
getStore
().
getCertificate
(
aliases
.
nextElement
());
...
...
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