LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-24-2005, 09:42 PM   #1
grumblor
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
GPG errors with enigmail


Hi,
I use a php script to generate GPG encrypted email, which is sent to my email address


--------------------------------------
$gpg = "/usr/bin/gpg";
$encrypt_command = "echo $message | $gpg --homedir /home/kbedso/.gnupg --always-trust --no-secmem-warning -e -a -r 2515F7B7";
$encrypted=shell_exec("$encrypt_command");
$new=$encrypted;

$from="From: Name <myemailaddress@what.com>";


mail('myemailaddress@what.com','Your Encrypted Message',$new,$from);
print $new;

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

when i open this in my mail program thunderbird, using the GPG Enigmail plugin I get the following ( i use mac OSX)


-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.2.1 (GNU/Linux)

hQQOAyM4+jcgqEPfEBAAgieVwzpPMaW7JGr9TxZly3Pqc49qmnoB554xh71rZmRq
cHofXw57ir7Z+h1m42xOH+w2SAoRhGz6hDRw4bEVcaI/m9HBbcvHEJHGMh9R3GUF
WCiftdDgj5z165mjBJlp8HJLSojjo3L7gVvD94moGlZJa5g6zhapynVDjDLYW0uJ
PTsQwVQWfmEtdYG6iEuoPiumbuPlVsH2p3muINcbg/N0BYZ92ulv3/Wrp0XY90FR
IWy91Y/eDxaIwWlagvGm8X6f4v/5ZiyXDpu8pL4gs8GdICI35vCNC4t4OXXXwXoT
FsZF/MIwQuigKsGoqCfmig+/M/C1KpBbfRKazAyix3x5uL5MUhTjRmIOTkt0B+Xf
S8RvlzJzFdHWESjr1+Ye1Uqo/9UXh1awJdYXXmA6kxElzxNQ0XwO7/hNfM8se/H9
hrsXAzb6ZErDgj0oIxrH+Zw0iWeUotkLmusP+204PxRs1MtksdXkJMm1nlZzIohu
Af8y8a2Z7IQGQVgAEtSval7wIOqseHnOgO9YPEDqcQQJ27/uL9qy5s8RaPTdR4tG
yT9tqShPg0uDOB4kzDgXRWM0Pk1BGC2lxHt58NJ6KBv8/bnvZ+yE5S7eys/hFiZ3
OyzeIQ+GgYbLS3QsEagn+gKljPcbN3lktlKsjI6nQZfxWZbMwf6wUF+pb7iUHOAQ
AKN3KMUoG8xTLiesWiYBcKuZgbYtLleqa8la/SfUuNvWcT526n4AEWx2xAC+wocp
WHlwQthB7hcHuXN3GnpaQprktFENLOcnrV4uW8k47YKlisY1oCYstx2OcaRmNfwE
DZqrhfLMbClkLowul745udo0hqjztjXDjqN8PYPokvTctZzYhnixeWl7mVCb9nCW
SOaTExMU8DRlQgJXUbm85B6oc5KN3ilE9cOdpu+tZuNieVZPCySLqaq81mjFB/Ec
JEYioVLgZdHQv5Mc1fBaFl6L4qc0EBD3KeFOwxEtl3+mjOIX7TMQXgNC7bl1FCpJ
4FRFDJlqDYCYqHU02EXXyZnkr9zlrZ2b46CqD4XaqEAWC0c4YLyZmKayCn0Q+MZG
ROHiqhSLHewjxqM0TU0Mpuu0cQqKB+rIsGRyxZFTgExyfBy8wdTfXcvyJVZhxpns
VriNBiSr2qsueUALV7s38vc7pMtZ91dL6aK+sNamlUjLCjEOYQvS/puiJEDrmcoT
EkbUvzPnQjUlcfXeLVmyk+U9v/7LlExdgrmopFEThFrchaz1/qJh/N6H7Mq7Gd2N
wFBFbTRwqMr4AKoVNES2t2l0tUIQj1n3tgUO/PsM7stP5s95sMG0K81o9q6h4qJI
0UArSu7h5Fj5LVxopEfvVVYhnWRCTb0/ToNvey0KC6PU0jsBhVX+fqu5w74yG+0X
N7dzA1hG36NX2dnpBx1WtzRubBnaMsWNL9R6QD021DbdJYcDXvItCemBU2tGUA==
=iqv8
-----END PGP MESSAGE-----


When I click on decrypt the decrypt option,
It asks for my passphrase, which I enter--

then doesnt decrypt the message-
and in the console gives the following message

enigmail> /usr/local/bin/gpg --charset utf8 --batch --no-tty --status-fd 2 -d -
-passphrase-fd 0 --no-use-agent
gpg: encrypted with 4096-bit ELG-E key, ID 20A843DF, created 2005-08-22
"Kim (installing stuff is fun) <myemailadress>"
enigmail.js: Enigmail.decryptMessageEnd: Error in command execution

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

I dont know what this error means, My mail program successfully decrypts all other mail messages,
just not the ones I generate via php. any ideas on whats causing the problem?
 
Old 08-26-2005, 10:35 AM   #2
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & Linux Mint
Posts: 488

Rep: Reputation: 31
Have you tried decrypting the message without using the enigmail frontend?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gpg errors on apt-get update... fannymites Debian 4 07-23-2005 02:46 AM
gpg errors after apt upgrade (sid) darkleaf Debian 2 06-28-2005 09:22 AM
gnupg and enigmail question.. slackb0t Slackware 4 04-26-2005 05:58 PM
Enigmail and Thunderbird question W0bbles Linux - Software 4 02-28-2005 01:07 AM
enigmail ryancw Debian 0 04-25-2004 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration