Bug #15906 [Opn]: Uknown error getting keys
| From: | m dot c dot reeve at bham dot ac dot uk | Date: | Tue, 17 Feb 2009 14:51:54 +0000 |
| Subject: | Bug #15906 [Opn]: Uknown error getting keys | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-33@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=15906&edit=1
ID: 15906
Updated by: m.c.reeve@bham.ac.uk
Reported By: m dot c dot reeve at bham dot ac dot uk
Summary: Uknown error getting keys
Status: Open
Type: Bug
Package: Crypt_GPG
Operating System: unknown unix
PHP Version: 5.2.8
Roadmap Versions:
New Comment:
1.0.6 - I don't have control over this but I will ask for it to be
updated.
Previous Comments:
------------------------------------------------------------------------
[2009-02-17 13:46:45] gauthierm
Hi Matthew,
Can you post the results of gpg --version?
------------------------------------------------------------------------
[2009-02-17 09:48:02] reevery
Description:
------------
Trying to create a script to encode some text via GPG (subsequently
to email),
Test script:
---------------
$to = 'm.c.reeve@bham.ac.uk';
$subject = "[bhamf.org] Donation";
$headers = "From: bhamf.org mailer <updateform@bhamf.org>";
$message = "Encrypt this message";
require_once 'Crypt/GPG.php';
$gpg = new Crypt_GPG(array('homedir' => '/home/bhamf/private/.gnupg',
'debug' => true));
$gpg->addEncryptKey('$to');
$encrypted_message = $gpg->encrypt($to, $message);
print $encrypted_message;
Expected result:
----------------
Hoping to see some encoded text
Actual result:
--------------
https://www.bhamf.org/giving/gpg/encrypt.php
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=15906&edit=1