diff options
author | Benoit Foucher <benoit@zeroc.com> | 2019-09-02 17:17:11 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2019-09-02 17:17:35 +0200 |
commit | d630127131f09af7a38df1ce1383666827abd6f1 (patch) | |
tree | f3617950a898b67027bf9876bd0fd91592af288e /cpp/test | |
parent | Fix slice2swift Windows build failure (diff) | |
download | ice-d630127131f09af7a38df1ce1383666827abd6f1.tar.bz2 ice-d630127131f09af7a38df1ce1383666827abd6f1.tar.xz ice-d630127131f09af7a38df1ce1383666827abd6f1.zip |
Fixed makecerts.py script to specify extended key usage
Diffstat (limited to 'cpp/test')
-rwxr-xr-x | cpp/test/IceSSL/certs/makecerts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/IceSSL/certs/makecerts.py b/cpp/test/IceSSL/certs/makecerts.py index 872d018fda7..34e94045219 100755 --- a/cpp/test/IceSSL/certs/makecerts.py +++ b/cpp/test/IceSSL/certs/makecerts.py @@ -124,7 +124,7 @@ certs = [ # for (ca, alias, args) in certs: if not ca.get(alias): - ca.create(alias, **args) + ca.create(alias, extendedKeyUsages="clientAuth" if alias.startswith("c_") else "serverAuth", **args) savecerts = [ (ca1, "s_rsa_ca1", None, {}), @@ -171,7 +171,7 @@ for (ca, alias, path, args) in savecerts: for size in [512, 1024]: dhparams = "dh_params{0}.der".format(size) if clean or not os.path.exists(dhparams): - ca1.run("openssl dhparam -outform=DER -out={0} {1}".format(dhparams, size)) + ca1.run("openssl dhparam -outform DER -out {0} {1}".format(dhparams, size)) # # Create certificate with custom extensions |