[pass] gpg: cannot open `/dev/tty': Device not configured
Ivan Pedersen
ivan at alpe.se
Mon Sep 21 17:43:16 CEST 2015
I installed GPG from here: https://gpgtools.org/ <https://gpgtools.org/>
The gpg-agent.conf looks like this:
$ cat gpg-agent.conf
default-cache-ttl 600
max-cache-ttl 7200
pinentry-program /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac
I tried changing it to:
pinentry-program /usr/local/bin/pinentry-mac
But it does not make any difference. They actually the same thing I guess? I don’t know much about these things but I recognise the pinentry-mac gui from earlier so it’s using that when signing and encrypting emails for example.
/Ivan
> On 21 Sep 2015, at 15:13, Steffen Vogel <post at steffenvogel.de> wrote:
>
> I’m using this Applescript with the pin entry program of GPGTools.
>
> Btw. I’m still waiting to get my patches for the next version of pass.applescript merged.
> Have a look at mailing list archive for those…
>
> Steffen
>
>
>> Am 21.09.2015 um 14:42 schrieb Mateusz Lenik <mlen at mlen.pl>:
>>
>> On Mon, Sep 21, 2015 at 12:14:55PM +0200, Ivan Pedersen wrote:
>>> Hi,
>>>
>>> I wanted to start using the OS X integration but I can’t get it to work. I use the script from here (Thanks Steffen) http://git.zx2c4.com/password-store/tree/contrib/pass.applescript <http://git.zx2c4.com/password-store/tree/contrib/pass.applescript> and have added the notification and shortcut to the service. But whenever I try to fetch a key i get this error message: "gpg: cannot open `/dev/tty': Device not configured”.
>>>
>>>
>>>
>>> I only get it when trying to get a key that actually exists in the store, otherwise i get "Error: root is not in the password store.” for example.
>>>
>>> Anyone here had this problem or can help me with it?
>>>
>>> /Ivan
>>>
>>>
>>
>> First off, did you install GPG via homebrew or from gpgtools.org?
>>
>> I suspect you have used the former and in this case I'd suggest
>> installing pinentry-mac formula and configuring GPG to use it.
>>
>>
>> Broader explanation: GPG by default uses pinentry that came with it.
>> This program requires a tty to be able to read the password for the key
>> in, while the script you linked runs pass without terminal. In this case
>> pinentry doesn't know which tty to use and tries the default one.
>> That fails, so the decryption fails too.
>>
>> --
>> Mateusz Lenik
>> PGP B865 E86A D36C 11A5 C1F8 C1D9 AAD4 CEC9 6B94 92C4
>> _______________________________________________
>> Password-Store mailing list
>> Password-Store at lists.zx2c4.com
>> http://lists.zx2c4.com/mailman/listinfo/password-store
>
>
>
> —
>
> Steffen Vogel
> Robensstraße 69
> 52070 Aachen
>
> Mail: post at steffenvogel.de
> Mobil: +49 1575 7180927
> Web: http://www.steffenvogel.de
> Jabber: steffen.vogel at jabber.rwth-aachen.de
>
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> http://lists.zx2c4.com/mailman/listinfo/password-store
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150921/0099e5dc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150921/0099e5dc/attachment-0001.asc>
More information about the Password-Store
mailing list