|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
can't connect to `C:/Program Files/GNU/GnuPG//S.gpg-agent'Hi,
Has anyone got any idea how to resolve the following error: can't connect to `C:/Program Files/GNU/GnuPG//S.gpg-agent' I get this error when issuing the following command gpg --passphrase-fd 0 --batch --output out.dat --decrypt in.pgp This worked fine until a few days ago but now it won't work at all. There's nothing wrong with the file because it decrypts fine without the passphrase-fd argument. Setup is Windows XP Pro and PGP is... C:\Program Files\GNU\GnuPG\Work>gpg --version gpg (GnuPG) 2.0.12 (Gpg4win 2.0.0) libgcrypt 1.4.4 Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://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: C:/Program Files/GNU/GnuPG/ Supported algorithms: Pubkey: RSA, ELG, DSA Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256 Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression: Uncompressed, ZIP, ZLIB, BZIP2 Regards Dave Registered Office: Turpin Distribution Services Ltd, Pegasus Drive, Stratton Business Park, Biggleswade, Bedfordshire, SG18 8TQ, UK. ***** Registered in England No. 1331778 ***** This email may contain confidential information and/or copyright material. This email is intended for the use of the addressee only. Any unauthorised use may be unlawful. If you receive this email by mistake, please advise the sender immediately by using the reply facility in your email software. _______________________________________________ Gnupg-users mailing list Gnupg-users@... http://lists.gnupg.org/mailman/listinfo/gnupg-users |
|
|
Re: can't connect to `C:/Program Files/GNU/GnuPG//S.gpg-agent'I pretty much have a similar problem. WIth gpg4win as well as with linux.
However, using gpg4win I do not see any usage problem asides this message. When using linux, even when I start gpg-agent --daemon, it creates it's socket under /tmp/<cryptdir>, while gpg searches for .gnupg/S.gpg-agent. The environment the daemon exports seems to be ignored. So I have to manually link .gnupg/S.gpg-agent to theat file below /tmp to be able to work with a smartcard at all. # gpg-agent --daemon GPG_AGENT_INFO=/tmp/gpg-mS2h6N/S.gpg-agent:1510:1; export GPG_AGENT_INFO; # gpg2 --card-status can't connect to `/root/.gnupg/S.gpg-agent': No such file or directory -> Same error message as if no gpg-agent has been started manually at all # ln -s /tmp/gpg-mS2h6N/S.gpg-agent /root/.gnupg/S.gpg-agent # gpg2 --card-status gpg: selecting openpgp failed: Card not present > Hi, > > Has anyone got any idea how to resolve the following error: > > can't connect to `C:/Program Files/GNU/GnuPG//S.gpg-agent' > > I get this error when issuing the following command > > gpg --passphrase-fd 0 --batch --output out.dat --decrypt in.pgp > > This worked fine until a few days ago but now it won't work at all. > > There's nothing wrong with the file because it decrypts fine without the > > passphrase-fd argument. > > Setup is Windows XP Pro and PGP is... > > C:\Program Files\GNU\GnuPG\Work>gpg --version > gpg (GnuPG) 2.0.12 (Gpg4win 2.0.0) > libgcrypt 1.4.4 > Copyright (C) 2009 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://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: C:/Program Files/GNU/GnuPG/ > Supported algorithms: > Pubkey: RSA, ELG, DSA > Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, > CAMELLIA128, > CAMELLIA192, CAMELLIA256 > Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 > Compression: Uncompressed, ZIP, ZLIB, BZIP2 > > Regards > Dave > > Registered Office: Turpin Distribution Services Ltd, Pegasus Drive, > Stratton Business Park, Biggleswade, Bedfordshire, SG18 8TQ, UK. ***** > Registered in England No. 1331778 ***** This email may contain > confidential information and/or copyright material. This email is intended > for the use of the addressee only. Any unauthorised use may be unlawful. > If you receive this email by mistake, please advise the sender immediately > by using the reply facility in your email software. > > _______________________________________________ > Gnupg-users mailing list > Gnupg-users@... > http://lists.gnupg.org/mailman/listinfo/gnupg-users > > _______________________________________________ Gnupg-users mailing list Gnupg-users@... http://lists.gnupg.org/mailman/listinfo/gnupg-users |
|
|
Re: can't connect to `C:/Program Files/GNU/GnuPG//S.gpg-agent'On 2009-10-29 14:59, listac@... wrote:
> When using linux, even when I start gpg-agent --daemon, it creates it's > socket under /tmp/<cryptdir>, while gpg searches for .gnupg/S.gpg-agent. > The environment the daemon exports seems to be ignored. > > So I have to manually link .gnupg/S.gpg-agent to theat file below /tmp to > be able to work with a smartcard at all. > > # gpg-agent --daemon > GPG_AGENT_INFO=/tmp/gpg-mS2h6N/S.gpg-agent:1510:1; export GPG_AGENT_INFO; > > # gpg2 --card-status > can't connect to `/root/.gnupg/S.gpg-agent': No such file or directory Because it doesn't export anything. A program cannot modify the environment of its parent, so gpg-agent has to be executed like this: » eval $(gpg-aget --daemon) » echo $GPG_AGENT_INFO /tmp/gpg-dbASrL/S.gpg-agent:1762:1 The 'eval $(foo)' part is tells your shell (bash, zsh) to interpret gpg-agent's output as commands; without it, all gpg-agent can do is print them to stdout. -- Mantas Mikulėnas <grawity@...> / PGP 0xCA07F3A91C9F7C03 ASCII ribbon campaign - stop HTML mail _______________________________________________ Gnupg-users mailing list Gnupg-users@... http://lists.gnupg.org/mailman/listinfo/gnupg-users |
| Free embeddable forum powered by Nabble | Forum Help |