1# Ice Test Suite Certificates 2 3This directory contains certificates used by the clients and servers in Ice test 4suite. These certificates are for testing purposes only and should **never** be 5used in a production environment. 6 7As provided, the server certificates use `127.0.0.1` for the Common Name, the 8IP address and DNS name. This works fine when you run the client and server on 9the same host. However, if you want to run them on separate hosts, you may need 10to regenerate the certificates (This is especially true for the JavaScript). 11 12We've included the Python script `makecerts.py` to simplify this task. 13 14## Prerequisites 15 16You'll need Python to run the script. The script also depends on a utility 17package from a separate [ZeroC repository][1]. You can install this package as 18follows: 19 20 pip install zeroc-icecertutils 21 22## Usage 23 24Running the script with `-h` displays the following usage information: 25 26``` 27Usage: certs/makecerts.py [options] 28 29Options: 30-h Show this message. 31-d | --debug Debugging output. 32--ip <ip> The IP address for the server certificate. 33--dns <dns> The DNS name for the server certificate. 34--use-dns Use the DNS name for the server certificate common 35 name (default is to use the IP address). 36``` 37 38The `--ip`, `--dns`, and `--use-dns` options affect the generation of the server 39certificate. Without any arguments, the script prompts for the value of the IP 40address and DNS name. 41 42You can specify an alternate IP address using `--ip` and an alternate DNS name 43using `--dns`. The `--use-dns` flag forces the script to use the DNS name as 44the server's Common Name instead of the IP address. 45 46[1]: https://github.com/zeroc-ice/icecertutils 47