FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17838&edit=1

ID: 17838
Comment by: mejo
Reported By: jonas at freesources dot org
Summary: Operations with passphrase doesn't work with GnuPG 2.x
Status: Open
Type: Bug
Package: Crypt_GPG
Package Version: SVN
PHP Version: Irrelevant
New Comment:

Any news on this bug?


Previous Comments:
------------------------------------------------------------------------

[2010-09-02 08:35:08] alec

Description:
------------
GnuPG 2.0 invokes pinentry binary with curses or X interface for
passphrase input. It is not handled by Crypt_GPG, which means script
hangs when you try to e.g. decrypt a message and secret key requires
passphrase.

I've tried to use --passphrase-fd and --batch, but it looks like gpg
waits for passphrase input before returning NEED_PASSPHRASE status.

------------------------------------------------------------------------

Search Discussions

  • Mike at May 11, 2011 at 2:33 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=17838&edit=1

    ID: 17838
    Updated by: mike@silverorange.com
    Reported By: alec at alec dot pl
    Summary: Operations with passphrase doesn't work with GnuPG
    2.x
    Status: Open
    Type: Bug
    Package: Crypt_GPG
    Package Version: SVN
    PHP Version: Irrelevant
    Roadmap Versions:
    New Comment:

    No updates since it was filed. The description is accurate. GnuPG 2.x
    doesn't support -
    -passphrase-fd and this makes it hard to securely pass the passphrase in
    a scripted
    environment.

    I don't have or use GnuPG 2.x so it's difficult for me to test
    solutions. If you can figure
    out how to programmatically send the passphrase to GnuPG 2.x when it's
    needed
    (keep in mind that sometimes multiple passphrases are required for a
    single
    operation), I can integrate it into Crypt_GPG.


    Previous Comments:
    ------------------------------------------------------------------------

    [2011-05-11 14:39:48] mejo

    Any news on this bug?

    ------------------------------------------------------------------------

    [2010-09-02 08:35:08] alec

    Description:
    ------------
    GnuPG 2.0 invokes pinentry binary with curses or X interface for
    passphrase input. It is not handled by Crypt_GPG, which means script
    hangs when you try to e.g. decrypt a message and secret key requires
    passphrase.

    I've tried to use --passphrase-fd and --batch, but it looks like gpg
    waits for passphrase input before returning NEED_PASSPHRASE status.

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 11, '11 at 1:40p
activeMay 11, '11 at 2:33p
posts2
users2
websitepear.php.net

2 users in discussion

Mike: 1 post Mejo: 1 post

People

Translate

site design / logo © 2022 Grokbase