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
msl.network.cli_keygen.add_parser_keygen(parser)[source]

Add the keygen command to the parser.

msl.network.cli_keygen.execute(args)[source]

Executes the keygen command.