From 5097e8d9d7e34bf538b9a7d915bfe6d3819f0d99 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 25 Sep 2006 03:33:02 +0000
Subject: [PATCH] Add a set of certificates for use in testing the server with SSL and StartTLS. The certificates are valid for 20 years, so we won't need to change them for a while.  They are self-signed, but there are also trust stores available so that clients can trust them without needing to resort to blindly trusting all certificates.  There is a client certificate that is adequate for use with SASL EXTERNAL.  Both the client and server certificates are available in both JKS and PKCS#12 formats.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
index 6e48877..952e055 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
@@ -156,6 +156,18 @@
                   new File(testConfigDir, "MakeLDIF"));
     copyFile(new File(testResourceDir, "jmxkeystore"),
              new File(testRoot, "jmxkeystore"));
+    copyFile(new File(testResourceDir, "server.keystore"),
+             new File(testConfigDir, "server.keystore"));
+    copyFile(new File(testResourceDir, "server.truststore"),
+             new File(testConfigDir, "server.truststore"));
+    copyFile(new File(testResourceDir, "client.keystore"),
+             new File(testConfigDir, "client.keystore"));
+    copyFile(new File(testResourceDir, "client.truststore"),
+             new File(testConfigDir, "client.truststore"));
+    copyFile(new File(testResourceDir, "server-cert.p12"),
+             new File(testConfigDir, "server-cert.p12"));
+    copyFile(new File(testResourceDir, "client-cert.p12"),
+             new File(testConfigDir, "client-cert.p12"));
 
 
     // Make the shell scripts in the bin directory executable, if possible.

--
Gitblit v1.10.0