View Source mix orbit.gen.cert (Orbit v0.2.1)

Create a self-signed certificate.

$ mix orbit.gen.cert [hostname]

The hostname is optional and defaults to "localhost".

The following files will be created:

  • priv/tls/<hostname>.pem - the certificate
  • priv/tls/<hostname>-key.pem - the private key