diff options
author | Jose <jose@zeroc.com> | 2014-08-21 18:45:55 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2014-08-21 18:45:55 +0200 |
commit | 641503506eeef3512b1fbf40ec4b0d499d52b6bc (patch) | |
tree | 8501faf2729fd2a788cde2444fe6c0666f1c0781 /cpp | |
parent | Fixed WINRT build (diff) | |
download | ice-641503506eeef3512b1fbf40ec4b0d499d52b6bc.tar.bz2 ice-641503506eeef3512b1fbf40ec4b0d499d52b6bc.tar.xz ice-641503506eeef3512b1fbf40ec4b0d499d52b6bc.zip |
Fix SSL configuration test to create Find.keychain
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/test/IceSSL/certs/Find.keychain | bin | 29492 -> 0 bytes | |||
-rwxr-xr-x | cpp/test/IceSSL/configuration/run.py | 19 |
2 files changed, 19 insertions, 0 deletions
diff --git a/cpp/test/IceSSL/certs/Find.keychain b/cpp/test/IceSSL/certs/Find.keychain Binary files differdeleted file mode 100644 index 7d4ba5745a2..00000000000 --- a/cpp/test/IceSSL/certs/Find.keychain +++ /dev/null diff --git a/cpp/test/IceSSL/configuration/run.py b/cpp/test/IceSSL/configuration/run.py index a67b5e2e920..44891d3bbe6 100755 --- a/cpp/test/IceSSL/configuration/run.py +++ b/cpp/test/IceSSL/configuration/run.py @@ -20,4 +20,23 @@ if len(path) == 0: sys.path.append(os.path.join(path[0], "scripts")) import TestUtil +certsPath = os.path.abspath(os.path.join(os.getcwd(), "..", "certs")) +keychainPath = os.path.abspath(os.path.join(certsPath, "Find.keychain")) + +if TestUtil.isDarwin(): + try: + os.remove(keychainPath) + except OSError: + pass + + os.system("security create-keychain -p password %s" % keychainPath) + for cert in ["s_rsa_ca1.pfx", "c_rsa_ca1.pfx"]: + os.system("security import %s -f pkcs12 -A -P password -k %s" % (os.path.join(certsPath, cert), keychainPath)) + TestUtil.clientServerTest(additionalClientOptions = '"%s"' % os.getcwd()) + +if TestUtil.isDarwin(): + try: + os.remove(keychainPath) + except OSError: + pass |