summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2016-10-03 11:42:42 +0200
committerBenoit Foucher <benoit@zeroc.com>2016-10-03 11:42:42 +0200
commitc511d0bd041b3562e8f441e62144ee133cbc1445 (patch)
treef843f959f0aefec6a184c41473715f8634fd699a
parentFixed (ICE-7405) - Can't run UWP demos with SSL (diff)
downloadice-c511d0bd041b3562e8f441e62144ee133cbc1445.tar.bz2
ice-c511d0bd041b3562e8f441e62144ee133cbc1445.tar.xz
ice-c511d0bd041b3562e8f441e62144ee133cbc1445.zip
Fixes to makecerts.py and instructions
-rw-r--r--certs/README.md21
-rwxr-xr-xcerts/makecerts.py6
2 files changed, 13 insertions, 14 deletions
diff --git a/certs/README.md b/certs/README.md
index 387f0aef7f7..924a0a324c6 100644
--- a/certs/README.md
+++ b/certs/README.md
@@ -1,21 +1,21 @@
# Ice Test Suite Certificates
This directory contains certificates used by the clients and servers in Ice test
-suite. These certificates are for testing puproses only and should **never** be
+suite. These certificates are for testing purposes only and should **never** be
used in a production environment.
-As provided, the server certificates use `localhost` for the Common Name and for
-the DNS name, and 127.0.0.1 as the IP address. This works fine when you run the
-client and server on the same host. However, if you want to run them on separate
-hosts, you may need to regenerate the certificates (This is especially true for
-the JavaScript).
+As provided, the server certificates use `127.0.0.1` for the Common Name, the
+IP address and DNS name. This works fine when you run the client and server on
+the same host. However, if you want to run them on separate hosts, you may need
+to regenerate the certificates (This is especially true for the JavaScript).
We've included the Python script `makecerts.py` to simplify this task.
## Prerequisites
-You'll need Python to run the script. The script also depends on a utility package
-from a separate [ZeroC repository][1]. You can install this package as follows:
+You'll need Python to run the script. The script also depends on a utility
+package from a separate [ZeroC repository][1]. You can install this package as
+follows:
pip install zeroc-icecertutils
@@ -36,9 +36,8 @@ Options:
```
The `--ip`, `--dns`, and `--use-dns` options affect the generation of the server
-certificate. Without any arguments, the script uses `localhost` as the server's
-DNS name, 127.0.0.1 as the server's IP address, and 127.0.0.1 as the server's
-Common Name.
+certificate. Without any arguments, the script prompts for the value of the IP
+address and DNS name.
You can specify an alternate IP address using `--ip` and an alternate DNS name
using `--dns`. The `--use-dns` flag forces the script to use the DNS name as
diff --git a/certs/makecerts.py b/certs/makecerts.py
index e521c889efd..eac654deb19 100755
--- a/certs/makecerts.py
+++ b/certs/makecerts.py
@@ -15,15 +15,15 @@ except Exception as ex:
sys.exit(1)
def usage():
- print("Usage: " + sys.argv[0] + " [options] [ip-address]")
+ print("Usage: " + sys.argv[0] + " [options]")
print("")
print("Options:")
print("-h Show this message.")
print("-d | --debug Debugging output.")
print("--ip <ip> The IP address for the server certificate.")
- print("--dns <dns> The DNS name for the server ceritificate.")
+ print("--dns <dns> The DNS name for the server certificate.")
print("--use-dns Use the DNS name for the server certificate common")
- print(" name (default is to use the IP)." )
+ print(" name (default is to use the IP address)." )
sys.exit(1)
#