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
6471f15c
Commit
6471f15c
authored
Jan 16, 2016
by
André Berenguel
Committed by
Guus der Kinderen
Jan 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reactivating the signing certificate feature
parent
71cb91c1
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
274 additions
and
265 deletions
+274
-265
LocalIncomingServerSession.java
...software/openfire/session/LocalIncomingServerSession.java
+1
-4
CertificateManager.java
src/java/org/jivesoftware/util/CertificateManager.java
+63
-44
security-keystore-signing-request.jsp
src/web/security-keystore-signing-request.jsp
+96
-84
security-keystore.jsp
src/web/security-keystore.jsp
+114
-133
No files found.
src/java/org/jivesoftware/openfire/session/LocalIncomingServerSession.java
View file @
6471f15c
...
...
@@ -20,7 +20,6 @@
package
org
.
jivesoftware
.
openfire
.
session
;
import
java.io.IOException
;
import
java.security.KeyStore
;
import
java.security.KeyStoreException
;
import
java.security.cert.Certificate
;
import
java.security.cert.X509Certificate
;
...
...
@@ -36,7 +35,6 @@ import org.jivesoftware.openfire.SessionManager;
import
org.jivesoftware.openfire.StreamID
;
import
org.jivesoftware.openfire.XMPPServer
;
import
org.jivesoftware.openfire.auth.UnauthorizedException
;
import
org.jivesoftware.openfire.keystore.CertificateStoreManager
;
import
org.jivesoftware.openfire.net.SASLAuthentication
;
import
org.jivesoftware.openfire.net.SocketConnection
;
import
org.jivesoftware.openfire.server.ServerDialback
;
...
...
@@ -371,8 +369,7 @@ public class LocalIncomingServerSession extends LocalServerSession implements In
usingSelfSigned
=
true
;
}
else
{
try
{
final
KeyStore
keyStore
=
XMPPServer
.
getInstance
().
getCertificateStoreManager
().
getIdentityStore
(
ConnectionType
.
SOCKET_S2S
).
getStore
();
usingSelfSigned
=
CertificateManager
.
isSelfSignedCertificate
(
keyStore
,
(
X509Certificate
)
chain
[
0
]);
usingSelfSigned
=
CertificateManager
.
isSelfSignedCertificate
((
X509Certificate
)
chain
[
0
]);
}
catch
(
KeyStoreException
ex
)
{
Log
.
warn
(
"Exception occurred while trying to determine whether local certificate is self-signed. Proceeding as if it is."
,
ex
);
usingSelfSigned
=
true
;
...
...
src/java/org/jivesoftware/util/CertificateManager.java
View file @
6471f15c
This diff is collapsed.
Click to expand it.
src/web/s
sl
-signing-request.jsp
→
src/web/s
ecurity-keystore
-signing-request.jsp
View file @
6471f15c
This diff is collapsed.
Click to expand it.
src/web/security-keystore.jsp
View file @
6471f15c
This diff is collapsed.
Click to expand it.
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