Using IP address to generate self-signed cert

We cannot trust hostname, and Agile automatically generated hostnames
are more complicated to use than plain IPv4 addresses.