Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
joram
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
joram
joram
Commits
2cb29d2d
Commit
2cb29d2d
authored
Dec 10, 2020
by
Andre Freyssinet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test the use of client authentication configuration (JORAM-368).
parent
606835a5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
2 deletions
+19
-2
tests/src/joram/ssl/Test.java
tests/src/joram/ssl/Test.java
+19
-2
tests/src/joram/ssl/keystore_ca.jks
tests/src/joram/ssl/keystore_ca.jks
+0
-0
tests/src/joram/ssl/keystore_clt.jks
tests/src/joram/ssl/keystore_clt.jks
+0
-0
tests/src/joram/ssl/keystore_clt_ca.jks
tests/src/joram/ssl/keystore_clt_ca.jks
+0
-0
tests/src/joram/ssl/keystore_srv.jks
tests/src/joram/ssl/keystore_srv.jks
+0
-0
tests/src/joram/ssl/keystore_srv_ca.jks
tests/src/joram/ssl/keystore_srv_ca.jks
+0
-0
No files found.
tests/src/joram/ssl/Test.java
View file @
2cb29d2d
...
...
@@ -52,10 +52,27 @@ public class Test extends TestCase {
public
void
run
()
{
try
{
System
.
out
.
println
(
"server start"
);
startAgentServer
((
short
)
0
);
String
serverks
=
System
.
getProperty
(
"server.ks"
,
"joram_ks"
);
String
serverpass
=
System
.
getProperty
(
"server.pass"
,
"jorampass"
);
String
clientauth
=
System
.
getProperty
(
"client.auth"
,
"NEED"
);
startAgentServer
((
short
)
0
,
new
String
[]
{
"-Dorg.objectweb.joram.clientAuth="
+
clientauth
,
"-Dorg.objectweb.joram.keystore="
+
serverks
,
"-Dorg.objectweb.joram.keystorepass="
+
serverpass
});
Thread
.
sleep
(
1000
);
// Joram client and server use the same property names, so we have to overload these
// properties prior to create the Connection.
String
clientks
=
System
.
getProperty
(
"client.ks"
);
if
(
clientks
!=
null
)
System
.
setProperty
(
"org.objectweb.joram.keystore"
,
clientks
);
String
clientpass
=
System
.
getProperty
(
"client.pass"
);
if
(
clientpass
!=
null
)
System
.
setProperty
(
"org.objectweb.joram.keystorepass"
,
clientpass
);
System
.
out
.
println
(
"ks="
+
clientks
+
", pass="
+
clientpass
);
admin
();
System
.
out
.
println
(
"admin config ok"
);
...
...
@@ -99,7 +116,7 @@ public class Test extends TestCase {
public
void
admin
()
throws
Exception
{
AdminModule
.
connect
(
"root"
,
"root"
,
6
0
,
"org.objectweb.joram.client.jms.tcp.ReliableSSLTcpClient"
);
AdminModule
.
connect
(
"root"
,
"root"
,
3
0
,
"org.objectweb.joram.client.jms.tcp.ReliableSSLTcpClient"
);
Queue
queue
=
Queue
.
create
(
"queue"
);
Topic
topic
=
Topic
.
create
(
"topic"
);
...
...
tests/src/joram/ssl/keystore_ca.jks
0 → 100644
View file @
2cb29d2d
File added
tests/src/joram/ssl/keystore_clt.jks
0 → 100644
View file @
2cb29d2d
File added
tests/src/joram/ssl/keystore_clt_ca.jks
0 → 100644
View file @
2cb29d2d
File added
tests/src/joram/ssl/keystore_srv.jks
0 → 100644
View file @
2cb29d2d
File added
tests/src/joram/ssl/keystore_srv_ca.jks
0 → 100644
View file @
2cb29d2d
File added
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