diff options
author | Mark Spruiell <mes@zeroc.com> | 2006-11-30 17:43:19 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2006-11-30 17:43:19 +0000 |
commit | 359e817733ba7cc57fb1ddd538201b0c571fd902 (patch) | |
tree | 0e103b25acfc48016fff1a3aebe5cf881eb56180 /java/test/IceSSL/configuration/AllTests.java | |
parent | bug fix for CheckCertName on incoming connections in Java2 (diff) | |
download | ice-359e817733ba7cc57fb1ddd538201b0c571fd902.tar.bz2 ice-359e817733ba7cc57fb1ddd538201b0c571fd902.tar.xz ice-359e817733ba7cc57fb1ddd538201b0c571fd902.zip |
test CheckCertName in server
Diffstat (limited to 'java/test/IceSSL/configuration/AllTests.java')
-rw-r--r-- | java/test/IceSSL/configuration/AllTests.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/java/test/IceSSL/configuration/AllTests.java b/java/test/IceSSL/configuration/AllTests.java index 2a9f84a7179..249c8f6e1bd 100644 --- a/java/test/IceSSL/configuration/AllTests.java +++ b/java/test/IceSSL/configuration/AllTests.java @@ -485,6 +485,34 @@ public class AllTests } fact.destroyServer(server); comm.destroy(); + + // + // Verify that IceSSL.CheckCertName has no effect in a server. + // + initData = createClientProps(defaultDir, defaultHost, threadPool); + initData.properties.setProperty("IceSSL.Keystore", "c_rsa_ca1.jks"); + initData.properties.setProperty("IceSSL.Password", "password"); + initData.properties.setProperty("IceSSL.Truststore", "cacert1.jks"); + comm = Ice.Util.initialize(args, initData); + + fact = Test.ServerFactoryPrxHelper.checkedCast(comm.stringToProxy(factoryRef)); + test(fact != null); + d = createServerProps(defaultDir, defaultHost, threadPool); + d.put("IceSSL.Keystore", "s_rsa_ca1.jks"); + d.put("IceSSL.Password", "password"); + d.put("IceSSL.Truststore", "cacert1.jks"); + d.put("IceSSL.CheckCertName", "1"); + server = fact.createServer(d); + try + { + server.ice_ping(); + } + catch(Ice.LocalException ex) + { + test(false); + } + fact.destroyServer(server); + comm.destroy(); } System.out.println("ok"); |