gpg doesn't import secret keys for me any more
Ineiev
ineiev at gnu.org
Sat Jan 12 20:12:47 CET 2019
Hello,
Does this reproduce for anyone else?
dti at manas:~$ uname -a
Linux manas 4.4.0-141-generic #167+8.0trisquel2 SMP Tue Jan 1 12:28:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
dti at manas:~$ gpg --version
gpg (GnuPG) 2.2.12
libgcrypt 1.8.4
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://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: /home/dti/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB
dti at manas:~$ pinentry-tty --version
pinentry-tty (pinentry) 1.1.0
Copyright (C) 2016 g10 Code GmbH
License GPLv2+: GNU GPL version 2 or later <https://www.gnu.org/licenses/>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
dti at manas:~$ rm -fr h0 h1;mkdir h0 h1;chmod og= h0 h1;echo "pinentry-program $prefix/bin/pinentry-tty" >h0/gpg-agent.conf;cp h{0,1}/gpg-agent.conf;gpg --home h0 --list-keys;gpg --home h1 --list-keys
gpg: keybox '/home/dti/h0/pubring.kbx' created
gpg: /home/dti/h0/trustdb.gpg: trustdb created
gpg: keybox '/home/dti/h1/pubring.kbx' created
gpg: /home/dti/h1/trustdb.gpg: trustdb created
dti at manas:~$ gpg --home h0 --quick-gen-key 'Вася Пушкин <vp at test.org>'
About to create a key for:
"Вася Пушкин <vp at test.org>"
Continue? (Y/n) y
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.
Please enter the passphrase to
protect your new key
Passphrase:
Repeat:
Warning: You have entered an insecure passphrase.
A passphrase should be at least 8 characters long.
A passphrase should contain at least 1 digit or
special character.
Take this one anyway
Enter new passphrase
[te]? t
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.
gpg: key A81CA20F9A70E47B marked as ultimately trusted
gpg: directory '/home/dti/h0/openpgp-revocs.d' created
gpg: revocation certificate stored as '/home/dti/h0/openpgp-revocs.d/94DCB4A36F4EEDC1A68E95ABA81CA20F9A70E47B.rev'
public and secret key created and signed.
pub rsa2048 2019-01-12 [SC] [expires: 2021-01-11]
94DCB4A36F4EEDC1A68E95ABA81CA20F9A70E47B
uid Вася Пушкин <vp at test.org>
sub rsa2048 2019-01-12 [E]
dti at manas:~$ gpg --home h0 -a --export >pub.asc
dti at manas:~$ gpg --home h0 -a --export-secret-key >sec.asc
Please enter the passphrase to export the OpenPGP secret key:
"Вася Пушкин <vp at test.org>"
2048-bit RSA key, ID A81CA20F9A70E47B,
created 2019-01-12.
Passphrase:
dti at manas:~$ gpg --home h1 --import <pub.asc
gpg: key A81CA20F9A70E47B: public key "Вася Пушкин <vp at test.org>" imported
gpg: Total number processed: 1
gpg: imported: 1
dti at manas:~$ gpg --home h1 --import <sec.asc
gpg: key A81CA20F9A70E47B: "Вася Пушкин <vp at test.org>" not changed
gpg: key A81CA20F9A70E47B/A81CA20F9A70E47B: error sending to agent: Invalid IPC response
gpg: error building skey array: Invalid IPC response
gpg: Total number processed: 1
gpg: unchanged: 1
gpg: secret keys read: 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Digital signature
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20190112/88c70c87/attachment.sig>
More information about the Gnupg-users
mailing list