--list-secret-keys and stdout

Arturo 'Buanzo' Busleiman buanzo at buanzo.com.ar
Sat Mar 17 13:09:11 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dear GnuPG developers,

I'm the author of a Firefox extension that implements OpenPGP -based digitall signing of HTTP
requests (http://enigform.mozdev.org), allowing web applications to authenticate data and identity.

Now my problem:

I need to implement secret key selection dialog, and while doing research, I decided to use this combo:

gpg --with-fingerprint --fixed-list-mode --with-colons --list-secret-keys

The problem is that the information is ALWAYS written to stdout, and I can't send it to a file. I've
tried:

- --status-file status --logger-file logger --attribute-file attr  --output out

But... always stdout.

Enigmail, an extension for Thunderbird you probably know, implements the parsing of that via
including an extra XPCOM component for IPC functionality, capturing stdout via IPC.

I want to avoid that. So far, my extension only depends on Firefox and gnupg, and works in any
platform Firefox and GnuPG work.

I can't wrap the call to gpg via bash, because I don't want to introduce new dependencies.

So:

Is there an undocument way of saving that information to a file? If not, would you implement
- --output support for --list-secret-keys? Should I implement it, and send you a patch? Any other
ideas/comments?

Sincerely,

- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Enigform for Firefox: A secure browsing experience: http://enigform.mozdev.org
Mail Hosting Seguro y Consultoria - http://www.buanzo.com.ar/pro/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+9pnAlpOsGhXcE0RCsFsAJ4/JX45nMqevVfaFjjN2kdfGHavngCeLLnr
D8JxK0B/+VYicn+EY9g3Zw8=
=e38k
-----END PGP SIGNATURE-----



More information about the Gnupg-devel mailing list