Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions anchor/keygen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ pub struct Keygen {
)]
pub force: bool,

#[clap(
long,
help = "Password for file encryption",
value_name = "PASSWORD",
default_value = ""
)]
#[clap(long, help = "Password for file encryption", value_name = "PASSWORD")]
pub password: Option<String>,
}

Expand Down Expand Up @@ -110,6 +105,8 @@ pub fn run_keygen(keygen: Keygen) -> Result<Rsa<Private>, KeygenError> {
// Log the public key
info!("Generated public key: {}", public_pem_encoded);
} else {
info!("Password not supplied. Private key will NOT be encrypted");

// Otherwise, write out plainkey keys to respective files
let data = PrettyOutput {
public: public_pem_encoded,
Expand Down