These certificates are self-signed and supposed to be used for development.
The project is extracted from a number of RabbitMQ test suites.
tls-gen
generates a self-signed Certificate Authority (CA) certificate
and 2 pairs of keys: client and server, with a single command.
It can also generate a chain of CA certificates.
Use these certificates in development and QA environments. They are self-signed and not intended to be used in production.
To generate a CA, client and server private key/certificate pairs, run
make
from the basic
directory with PASSWORD
environment variable
providing the passphrase:
cd [path to tls-gen repository]/basic
# pass a password using the PASSWORD env variable
PASSWORD=bunnies make
# results will be under the ./result directory
ls -lha ./result
Generated CA certificate as well as client and server certificate and private keys will be
under the result
directory.
You can verify the generated client and server certificates against the generated CA one with
make verify
By default, certificate's CN (Common Name) is calculated using hostname
.
It is possible to override CN with an environment variable:
CN=secure.mydomain.local PASSWORD=bunnies make
To generate a root CA, 2 intermediate CAs, client and server key/certificate pairs, run make
from
the intermediates
directory the same way:
PASSWORD=bunnies make
# results will be under the ./result directory
ls -lha ./result
Mozilla Public License, see LICENSE
.