io7m | single-page | multi-page | epub | Certusine User Manual
7.2. check-configuration
Previous
7. Command-Line Interface
Up
7.4. renew
Next

# 7.3. generate-keypair

- 7.3.1. Name
- 7.3.2. Description
- 7.3.3. Examples

## 7.3.1. Name

1
generate-keypair - Generate keypairs

## 7.3.2. Description

1
The generate-keypair command generates keypairs.

### 7.3.2.2. Parameters

Parameter | Type | Required | Description
--- | --- | --- | ---
--verbose | CLPLogLevel | false | Set the minimum logging verbosity level.
--public-key | Path | true | The public key
--private-key | Path | true | The private key
--overwrite | boolean | false | Overwrite keys if already present.

3
The generate-keypair command will generate a keypair and write the private key to the file specified with --private-key, and write the public key to the file specified with --public-key. If the key files already exist, they will not be overwritten unless the --overwrite parameter is specified.
4
If the command encounters no errors or warnings, it will not print anything.

## 7.3.3. Examples

### 7.3.3.1. Example

    $ certusine generate-keypair --private-key key.pri --public-key key.pub

    $ certusine generate-keypair --private-key key.pri --public-key key.pub
    error: java.nio.file.FileAlreadyExistsException: key.pub

    $ certusine generate-keypair --private-key key.pri --public-key key.pub --overwrite true

7.2. check-configuration
Previous
7. Command-Line Interface
Up
7.4. renew
Next
io7m | single-page | multi-page | epub | Certusine User Manual