$ solana-keygen new --outfile ~/my-solana-wallet/my-keypair2.json
Generating a new keypair
For added security, enter a BIP39 passphrase
NOTE! This passphrase improves security of the recovery seed phrase NOT the
keypair file itself, which is stored as insecure plain text
BIP39 Passphrase (empty for none): thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 6, kind: Other, message: "The handle is invalid." }', keygen\src/keygen.rs:574:92
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
only works with --no-bip39-passphrase