msl.network.cli_keygen module
Command line interface for the keygen
command.
To see the help documentation, run the following command in a terminal:
msl-network keygen --help
Generate a private key to digitally sign a PEM certificate.
The keygen
command is similar to the openssl command:
openssl req -newkey rsa:2048 -nodes -keyout key.pem
Examples:
# create a default private key (RSA, 2048-bit, unencrypted)
# and save it to the default directory
msl-network keygen
# create a 3072-bit, encrypted private key using the DSA algorithm
msl-network keygen dsa --size 3072 --password WhatEVER you wAnt!
See Also:
msl-network certgen