Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Generate Key

Enter password manually

Perform the preliminary checks: §.

Perform key generation pre-check:

ppk key generate --key-home /private/tmp/key --prompt-for-passphrase

When the pre-test is successful, the output is as follows:

=== Dry Run ===
Action    : key generate
OutputDir : /private/tmp/key
Overwrite : false
Prompt    : true
Next      : Re-run with --apply to execute.

Execute Build

ppk key generate --key-home /private/tmp/key --apply --prompt-for-passphrase

On success, the output is as follows:

Input passphrase for generated private key: [hidden]
=== Completed ===
Action      : key generate
PrivateKey  : /private/tmp/key/ppk.key
PublicKey   : /private/tmp/key/ppk.pub
PasswordFile: /private/tmp/key/ppk.pwd
Permissions : chmod 600 /private/tmp/key/ppk.key && chmod 644 /private/tmp/key/ppk.pub
Status      : Command completed successfully.

Read environment variable password

Perform the preliminary checks: §.

# ⚠️ Note: Setting Environment Variables
export PPKPKPSW="123456"
ppk key generate --key-home /private/tmp/key

When the pre-test is successful, the output is as follows:

=== Dry Run ===
Action    : key generate
OutputDir : /private/tmp/key
Overwrite : false
Prompt    : false
Next      : Re-run with --apply to execute.

Execute Build

ppk key generate --key-home /private/tmp/key --apply

On success, the output is as follows:

=== Completed ===
Action      : key generate
PrivateKey  : /private/tmp/key/ppk.key
PublicKey   : /private/tmp/key/ppk.pub
PasswordFile: /private/tmp/key/ppk.pwd
Permissions : chmod 600 /private/tmp/key/ppk.key && chmod 644 /private/tmp/key/ppk.pub
Status      : Command completed successfully.

Order Details Reference