View Source mix x509.gen.suite (X509 v0.8.7)
Generates a suite of test certificates.
mix x509.gen.suite
mix x509.gen.suite test.local
Please refer to the documentation for X509.Test.Suite
for information about
the scenarios that may be tested using the generated certificates.
WARNING: only use the generated certificates for testing in a closed network
environment, such as running a development server on localhost
.
For production, staging, or testing servers on the public internet, obtain a
proper certificate, for example from Let's Encrypt.
arguments
Arguments
This tasks takes a single, optional argument: the domain name to use in the
hostnames embedded in the certificates. If no domain name is specified, the
default domain from X509.Test.Suite
will be used.
Other (optional) arguments:
- '--password' ('-p'): if set, an encrypted, password protected version of each private key will be created
--crlserver
(-c
): the base URL for the CRL server to be used for CRL distribution points--output
(-o
): the path where the certificates and keys should be stored (default: priv/cert/suite)--force
(-f
): overwrite existing files without prompting for confirmation
Requires OTP 20 or later.