LINUX.ORG.RU

GPG No pinentry


1

1

Доброго времени суток. На арчике в последнее время перестал работать gpg ссылаясь на то, что не может найти pinentry.

strace gpg --decrypt message.asc
...
write(9, "\n", 1)                       = 1
read(9, "OK\n", 1002)                   = 3
write(9, "OPTION ttytype=xterm", 20)    = 20
write(9, "\n", 1)                       = 1
read(9, "OK\n", 1002)                   = 3
write(9, "OPTION display=:0", 17)       = 17
write(9, "\n", 1)                       = 1
read(9, "OK\n", 1002)                   = 3
write(9, "OPTION lc-ctype=en_US.UTF8", 26) = 26
write(9, "\n", 1)                       = 1
read(9, "OK\n", 1002)                   = 3
write(9, "OPTION lc-messages=en_US.UTF8", 29) = 29
write(9, "\n", 1)                       = 1
read(9, "OK\n", 1002)                   = 3
write(9, "OPTION allow-pinentry-notify", 28) = 28
write(9, "\n", 1)                       = 1
read(9, "OK\n", 1002)                   = 3
write(9, "AGENT_ID", 8)                 = 8
write(9, "\n", 1)                       = 1
read(9, "ERR 67109139 Unknown IPC command <GPG Agent>", 1002) = 44
read(9, "\n", 958)                      = 1
write(9, "GETINFO cmd_has_option GET_PASSPHRASE repeat", 44) = 44
write(9, "\n", 1)                       = 1
read(9, "OK\n", 1002)                   = 3
write(9, "GET_PASSPHRASE --data --repeat=0 -- ************************** X X Please+enter+the+passphrase+to+unlock+the+secret+key+for+the+OpenPGP+certificate:%0A%22****************%22%0A1024-bit+RSA+key,+ID+F18BBF3C,%0Acreated+2014-02-20+(main+key+ID+DEFEC5EE).%0A", 266) = 266
write(9, "\n", 1)                       = 1
read(9, "ERR 67108949 No pinentry <GPG Agent>\n", 1002) = 37
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fada39a6000
write(2, "gpg: problem with the agent: No pinentry\n", 41gpg: problem with the agent: No pinentry
) = 41
write(2, "gpg: encrypted with 1024-bit RSA key, ID ********, created 2014-02-20\n", 70gpg: encrypted with 1024-bit RSA key, ID ********, created 2014-02-20
) = 70
write(2, "      \"*****\"\n", 23      "**************************"
) = 23
write(2, "gpg: public key decryption failed: Operation cancelled\n", 55gpg: public key decryption failed: Operation cancelled
) = 55
write(2, "gpg: decryption failed: No secret key\n", 38gpg: decryption failed: No secret key
) = 38
read(3, "", 8192)                       = 0
munmap(0x7fada39a9000, 32768)           = 0
exit_group(2)                           = ?
+++ exited with 2 +++
[denis@dl tmp]$ echo $GPG_AGENT_INFO
/home/denis/.gnupg/S.gpg-agent:28393:1
[denis@dl tmp]$ ps -e | grep gpg
 8596 ?        00:00:00 gpg-agent
28684 ?        00:00:03 kgpg
cat ~/.gnupg/gpg-agent.conf 
pinentry-program /usr/bin/pinentry-qt4
[denis@dl tmp]$ file /usr/bin/pinentry-qt4 
/usr/bin/pinentry-qt4: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=86097a97dab37f778ff69d6639768e85fa073942, stripped

Звездочками заменил имя и fingerprint ключа.

Тут агента трейсить надо. И проверять его env.

deterenkelt ()

а без агента?

--no-use-agent

maloi ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.