[pass] gpg: cannot open `/dev/tty': Device not configured
Ivan Pedersen
ivan at alpe.se
Mon Sep 21 22:06:09 CEST 2015
Tried to apply the patches, still the same issue plus that I get some error messages. Not sure I did it right so I attached the script that I now use.
When I run it from the services menu in terminal I get this error after the same dev/tty error as before:
If I run it from inside Automator I get "pw is not defined"
My PATH looks like this:
echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin
/IvanOn 21 September 2015 21:11:03 +02:00, Steffen Vogel <post at steffenvogel.de> wrote:
> Try to check if pass.applescript is actually using the correct GPG executable.
> You might have to change the PATH variable inside pass.applescript.
> I had the problem once, that pass.applescript was using GPG from my MacPorts installation.
>
> Did you applied the newest patches from the mailing list? I changed some stuff which might affect your problem..
>
> Cheers,
>
> —
>
> 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>
>
>
> > Am 21.09.2015 um 17:43 schrieb Ivan Pedersen <<ivan at alpe.se>>:
> >
> > I installed GPG from here: <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>
> > >
> > _______________________________________________
> > Password-Store mailing list
> > Password-Store at lists.zx2c4.com
> > <http://lists.zx2c4.com/mailman/listinfo/password-store>
> >
> _______________________________________________
> 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/12c31aac/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2015-09-21 at 21.46.39.png
Type: image/png
Size: 57301 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150921/12c31aac/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2015-09-21 at 21.43.45.png
Type: image/png
Size: 54350 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150921/12c31aac/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pass.applescript
Type: application/octet-stream
Size: 3263 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150921/12c31aac/attachment-0001.obj>
More information about the Password-Store
mailing list