Generate Key
Enter password manually
Perform the preliminary checks: § .
ppk key generate --key-home C:\test_key --prompt-for-passphrase
When the pre-test is successful, the output is as follows:
=== Dry Run ===
Action : key generate
OutputDir : C:\test_key
Overwrite : false
Prompt : true
Next : Re-run with --apply to execute.
Execute Build
ppk key generate --key-home C:\test_key --prompt-for-passphrase --apply
On success, the output is as follows:
Input passphrase for generated private key: [hidden]
=== Completed ===
Action : key generate
PrivateKey : C:\test_key\ppk.key
PublicKey : C:\test_key\ppk.pub
PasswordFile: C:\test_key\ppk.pwd
Permissions : chmod 600 C:\test_key\ppk.key && chmod 644 C:\test_key\ppk.pub
Status : Command completed successfully.
Read environment variable password
Perform the preliminary checks: § .
REMSet environment variable
set PPKPKPSW=123456
ppk key generate --key-home C:\test_key
When the pre-test is successful, the output is as follows:
=== Dry Run ===
Action : key generate
OutputDir : C:\test_key
Overwrite : false
Prompt : false
Next : Re-run with --apply to execute.
Execute Build
ppk key generate --key-home C:\test_key --apply
On success, the output is as follows:
=== Completed ===
Action : key generate
PrivateKey : C:\test_key\ppk.key
PublicKey : C:\test_key\ppk.pub
PasswordFile: C:\test_key\ppk.pwd
Permissions : chmod 600 C:\test_key\ppk.key && chmod 644 C:\test_key\ppk.pub
Status : Command completed successfully.