Re: Reliably determining that the agent is available and starting it if not

2013-02-21 Thread Doug Barton
On 02/21/2013 06:32 PM, Craig Ringer wrote: On 02/22/2013 09:18 AM, Doug Barton wrote: I have the following script that does this for you in a Unix'y environment, assuming your DE doesn't already handle it: What I'm hoping for is something I can use in a utility script, so that the user doesn'

Re: Reliably determining that the agent is available and starting it if not

2013-02-21 Thread Craig Ringer
On 02/22/2013 09:18 AM, Doug Barton wrote: > I have the following script that does this for you in a Unix'y > environment, assuming your DE doesn't already handle it: What I'm hoping for is something I can use in a utility script, so that the user doesn't have to mess with their (likely distro-spe

Reliably determining that the agent is available and starting it if not

2013-02-21 Thread Craig Ringer
Hi all I'm scripting gpg to batch re-encrypt some files, and I've run into a surprising problem I was hoping for some advice on. I expected it to be simple to make sure that the a GPG agent (either the "gpg-agent" program or something like Gnome's built-in agent) were available and usable by gpg

Re: Reliably determining that the agent is available and starting it if not

2013-02-21 Thread Doug Barton
I have the following script that does this for you in a Unix'y environment, assuming your DE doesn't already handle it: https://dougbarton.us/PGP/gpg-agent.html hth, Doug ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mail

Re: Reliably determining that the agent is available and starting it if not

2013-02-21 Thread Craig Ringer
Oh, I should've mentioned that I also asked here: http://serverfault.com/questions/481103/gpg-agent-says-agent-exists-but-gpg-says-agent-doesnt-exist/481312#481312 -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services _

Re: Documentation on symmetric key options for GPGME

2013-02-21 Thread Jim Treinen
Thank you for the information. Jim. On Thu, Feb 21, 2013 at 11:34 AM, Werner Koch wrote: > On Thu, 21 Feb 2013 17:19, jtrei...@gmail.com said: > > > own education, is it possible to force the use of AES (or any other > cipher) > > using the GPGME library ? I don't see any parameters on the * >

Re: options files

2013-02-21 Thread Avi
On Thu, Feb 21, 2013 at 1:39 PM, Werner Koch wrote: > > On Thu, 21 Feb 2013 16:50, jw72...@verizon.net said: > > > Can I get a link discussing one or more of a typical situations when > > options > > files are used? Thanks > > I have no link bu at least gpg.conf should always be used to set at > l

Re: key ordering choices

2013-02-21 Thread Werner Koch
On Thu, 21 Feb 2013 16:50, jw72...@verizon.net said: > The secret keys are listed from the keyring in my gpg homedir. When there > are several secret keys, what is the ordering criteria used by gpg to No. Similar to files in a directory on Unix. gpg has no feature to sort them. If you want tha

Re: options files

2013-02-21 Thread Werner Koch
On Thu, 21 Feb 2013 16:50, jw72...@verizon.net said: > Can I get a link discussing one or more of a typical situations when options > files are used? Thanks I have no link bu at least gpg.conf should always be used to set at least your own signing key and an --encrypt-to key. A keyserver entry i

Re: Documentation on symmetric key options for GPGME

2013-02-21 Thread Werner Koch
On Thu, 21 Feb 2013 17:19, jtrei...@gmail.com said: > own education, is it possible to force the use of AES (or any other cipher) > using the GPGME library ? I don't see any parameters on the * Not directly. The usual advise I give is to set a different home directory (gpgme_set_engine_info) and

Re: Documentation on symmetric key options for GPGME

2013-02-21 Thread Jim Treinen
Thank you for the information, that certainly makes sense. Regarding AES, I understand your point about being compatible with all clients, but for my own education, is it possible to force the use of AES (or any other cipher) using the GPGME library ? I don't see any parameters on the * gpgme_set_

Bug in documentation? --gpg-agent-info

2013-02-21 Thread Hauke Laging
Hello, my man page (for GnuPG 2.0.19) says both --gpg-agent-info This is dummy option. It has no effect when used with gpg2. and GPG_AGENT_INFO [...] The option --gpg-agent-info can be used to override it. Hauke -- ☺ PGP: 7D82 FB9F D25A 2CE4 5241 6C37 BF

options files

2013-02-21 Thread John A. Wallace
Hi, Can I get a link discussing one or more of a typical situations when options files are used? Thanks John A. Wallace The pen is mightier than the sword, but only if you get in the first stroke. ___ Gnupg-users mailing list Gnupg-users@gnupg.org

key ordering choices

2013-02-21 Thread John A. Wallace
When I use this command: Gpg -list-secret-keys The secret keys are listed from the keyring in my gpg homedir. When there are several secret keys, what is the ordering criteria used by gpg to display the keys within an individual keyring? Do I have any control over the ordering? Also, "if" I wan

Re: Piping tar into gpg

2013-02-21 Thread Werner Koch
On Thu, 21 Feb 2013 08:50, f_phil...@fastmail.net said: > Better approach (in bash, at least): > tar --create --null --files-from=<(find ... -print0) | gpg ... As usual --files-from (or -T) takes input from stdin if you use "-" as file name. Thus there is no need for strange Bash options. -prin

Re: Piping tar into gpg

2013-02-21 Thread Florian Philipp
Am 20.02.2013 23:40, schrieb Daniel Kahn Gillmor: > On 02/20/2013 04:29 PM, Stefan Malte Schumacher wrote: >> I want to create encrypted backups with tar and gpg, which I then want to >> upload to my online storage. Strangely I can't get it working. >> "find /mnt/raid/Dokumente/ -type f -print0 |ta