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
4cae2514
Commit
4cae2514
authored
Feb 23, 2018
by
Guus der Kinderen
Committed by
akrherz
Feb 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1494: Fix the xmppAddr SAN othername entry in generated certs.
parent
7dc07352
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
CertificateManager.java
src/java/org/jivesoftware/util/CertificateManager.java
+9
-4
No files found.
src/java/org/jivesoftware/util/CertificateManager.java
View file @
4cae2514
...
...
@@ -488,10 +488,15 @@ public class CertificateManager {
// add subjectAlternativeName extension
boolean
critical
=
subjectDN
.
getRDNs
().
length
==
0
;
ASN1Sequence
othernameSequence
=
new
DERSequence
(
new
ASN1Encodable
[]{
new
ASN1ObjectIdentifier
(
"1.3.6.1.5.5.7.8.5"
),
new
DERUTF8String
(
domain
)});
GeneralName
othernameGN
=
new
GeneralName
(
GeneralName
.
otherName
,
othernameSequence
);
GeneralNames
subjectAltNames
=
new
GeneralNames
(
new
GeneralName
[]{
othernameGN
});
ASN1Sequence
othernameSequence
=
new
DERSequence
(
new
ASN1Encodable
[]
{
new
ASN1ObjectIdentifier
(
"1.3.6.1.5.5.7.8.5"
),
new
DERTaggedObject
(
true
,
GeneralName
.
otherName
,
new
DERUTF8String
(
domain
)
)
}
);
DERTaggedObject
othernameGN
=
new
DERTaggedObject
(
false
,
GeneralName
.
otherName
,
othernameSequence
);
GeneralNames
subjectAltNames
=
GeneralNames
.
getInstance
(
new
DERSequence
(
othernameGN
)
);
certBuilder
.
addExtension
(
Extension
.
subjectAlternativeName
,
critical
,
subjectAltNames
);
// add keyIdentifiers extensions
...
...
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