Page MenuHome GnuPG

Passphrase message shown with --key-gen even if --passphrase used
Closed, ResolvedPublic

Description

Run gpg with "--key-gen" and "--passphrase xxx" command line flags. Notice that
even though you've supplied the passphrase on the command line, and gpg knows
not to ask for one interactively, it still spits out this message:

You need a Passphrase to protect your secret key.

This message should be suppressed when the "--passphrase" flag is used.

Details

Version
1.4.9

Event Timeline

werner added a subscriber: werner.

This would be too complicated to fix. It is not just --passphrase but also
--use-agent which gets into the game.

werner claimed this task.