On Red Hat Enterprise Linux 7 server, we are unable to generate the gpg key.
Closed, InvalidPublic

Description

Unable to generate the gpg key with "gpg2 --gen-key" command though GPG_TTY
is set to /dev/tty for a normal user. Multiple instances of gpg-agent are
getting started when we trigger gpg --gen-key command where I expect only
one agent should be running at any time.

gpg (GnuPG) 2.0.22
libgcrypt 1.5.3
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,

CAMELLIA128, CAMELLIA192, CAMELLIA256

Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

As a normal user, when I am trying to create gpg key it is failing at the
below step.

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key.

gpg: cancelled by user
gpg: Key generation canceled.

Please assist.

Details

Version
2.0.22
sarathingpg set Version to 2.0.22.
sarathingpg assigned this task to werner.
sarathingpg added a subscriber: sarathingpg.
sarathingpg added a subscriber: werner.
werner added a comment.Jun 4 2016, 9:26 PM

Please ask on the gnupg-users mailing list for help.

Some quick hints:
Is your pinentry properly installed? Is gpg-agent running? Does gnome-keyring
interfere with gpg-agent?

werner lowered the priority of this task from Unbreak Now! to Normal.Jun 4 2016, 9:27 PM
werner removed a project: Bug Report.
werner added a project: Support.
werner closed this task as Invalid.