gpgv generates "gpgv2 generates Libgcrypt warning: missing initialization" error when used against a file
Issue
gpgv
generates "gpgv2 generates Libgcrypt warning: missing initialization" error when used against a file.
[root@example ~]# useradd testuser
[root@example ~]# echo redhat | passwd --stdin testuser
Changing password for user testuser.
passwd: all authentication tokens updated successfully.
[root@example ~]# su - testuser
[testuser@example ~]$ gpg --gen-key
gpg (GnuPG) 2.0.14; Copyright (C) 2009 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
gpg: directory `/home/testuser/.gnupg' created
gpg: new configuration file `/home/testuser/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/testuser/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/home/testuser/.gnupg/secring.gpg' created
gpg: keyring `/home/testuser/.gnupg/pubring.gpg' created
Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
Your selection?
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048)
Requested keysize is 2048 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0)
Key does not expire at all
Is this correct? (y/N) y
GnuPG needs to construct a user ID to identify your key.
Real name: testuser
Email address: testuser@localhost
Comment:
You selected this USER-ID:
"testuser <testuser@localhost>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key.
can't connect to `/home/testuser/.gnupg/S.gpg-agent': No such file or directory
gpg-agent[28519]: directory `/home/testuser/.gnupg/private-keys-v1.d' created
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
fdsafdsfdWe need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
asddasddgpg: /home/testuser/.gnupg/trustdb.gpg: trustdb created
gpg: key 84FE7563 marked as ultimately trusted
public and secret key created and signed.
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
pub 2048R/84FE7563 2013-09-11
Key fingerprint = 9260 C662 D897 4964 7B17 F633 0A59 18F6 84FE 7563
uid testuser <testuser@localhost>
sub 2048R/4217DFCB 2013-09-11
[testuser@example ~]$ ls -a .gnupg/
. .. gpg.conf private-keys-v1.d pubring.gpg pubring.gpg~ random_seed secring.gpg trustdb.gpg
[testuser@example ~]$ gpg --list-keys
/home/testuser/.gnupg/pubring.gpg
------------------------------
pub 2048R/84FE7563 2013-09-11
uid testuser <testuser@localhost>
sub 2048R/4217DFCB 2013-09-11
[testuser@example ~]$ gpg --list-secret-keys
/home/testuser/.gnupg/secring.gpg
------------------------------
sec 2048R/84FE7563 2013-09-11
uid testuser <testuser@localhost>
ssb 2048R/4217DFCB 2013-09-11
[testuser@example ~]$ touch file.txt
[testuser@example ~]$ vim file.txt
[testuser@example ~]$ gpg --clearsign file.txt > file.txt.gpg
You need a passphrase to unlock the secret key for
user: "testuser <testuser@localhost>"
2048-bit RSA key, ID 84FE7563, created 2013-09-11
can't connect to `/home/testuser/.gnupg/S.gpg-agent': No such file or directory
[testuser@example ~]$ gpg --clearsign file.txt > file.txt.gpg
You need a passphrase to unlock the secret key for
user: "testuser <testuser@localhost>"
2048-bit RSA key, ID 84FE7563, created 2013-09-11
can't connect to `/home/testuser/.gnupg/S.gpg-agent': No such file or directory
File `file.txt.asc' exists. Overwrite? (y/N) y
[testuser@example ~]$ ls
file.txt file.txt.asc file.txt.gpg
[testuser@example ~]$ gpgv --keyring=/home/testuser/.gnupg/pubring.gpg file.txt.asc
gpgv: Signature made Wed 11 Sep 2013 10:43:37 PM IST using RSA key ID 84FE7563
gpgv: Good signature from "testuser <testuser@localhost>"
[root@example ~]# tailf /var/log/messages
Sep 11 22:46:54 example gpgv: Libgcrypt warning: missing initialization - please fix the application
Environment
- Red Hat Enterprise Linux 6.4
- gnupg2-2.0.14-4.el6.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.