osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

installing GPG contrib

This is a discussion on installing GPG contrib within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Well, this is the main error: gpg: info@prometheustsln.com : skipped: public key not found not finding the key is probably ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #21  
Old 05-21-2004, 01:44 AM
New Member
 
Join Date: Feb 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
suba
Default

Well, this is the main error:
gpg: info@prometheustsln.com: skipped: public key not found

not finding the key is probably cos it can't find the pubring

what you can do is execute that gpg commandline in the shell, eg;

$gpgpath --homedir $gpghome --verbose --verbose -r $gpgrecipient --encrypt -a -z 0 $plainTxt

replace the above strings (everything that's $xxx) with your actual paths and filenames, something like;

/usr/bin/gpg --homedir /home/username --verbose --verbose -r email@somewhere.com --encrypt -a -z 0 somefile.txt

it should create a somefile.txt.asc

if that fails with can't find key, try
/usr/bin/gpg --homedir /home/username/.gnupg --verbose --verbose -r email@somewhere.com --encrypt -a -z 0 somefile.txt

If either of the above work but still doesnt from the web then you can then see if it's a http permission problem.

Also note that https also has a seperate config for php and that safe mode may be on in https but off in http.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #22  
Old 05-21-2004, 02:19 PM
New Member
 
Join Date: May 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pichardotech
Default

OK I was able to run the second command in the shell and get the somefile.txt.asc

/usr/bin/gpg --homedir /home/username/.gnupg --verbose --verbose -r email@somewhere.com --encrypt -a -z 0 somefile.txt

The result on the shell was:

gpg: Warning: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
gpg: loaded digest 2
gpg: using secondary key 364C0E39 instead of primary key 676AF441
gpg: key 576AF441: accepted as trusted key
gpg: This key belongs to us
gpg: reading from '/home/username/.gpnupg/somefile.txt'
gpg: writing to '/home/username/.gpnupg/somefile.txt.asc'
gpg: ELG-E/AES encrypted for 364COE39 info (info) <info@prometheustsln.com>

So it works but it's using some secondary key (364C0E39) I don't know where is coming from. The key I created was 576AF441 . I decrypted the file iin the shell and this what I got:

gpg --decrypt /home/bakerspl/.gpnug/somefile.txt.asc
gpg: Warning: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information

You need a passphrase to unlock the secret key for
user: "info (info) <info@prometheustsln.com>"
1024-bit ELG-E key, ID 364COE39, created 2004-05-21 (main key ID 676AF441)

gpg: encrypted with 1024-bit ELG-E key, ID 364COE39, created 2004-05-21
info (info) <info@prometheustsln.com>"
This is a test for gpg.

I'm baffled with the origin of the second key. Is it possible that gpg creates a different key that is kept off limits from the user and then uses it to encrypt the file? I tried to decrypt the file on my local compuer. It recognized the main key ID and asked me for the password. Then all I got was a blank document. Does this make sense?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #23  
Old 05-21-2004, 03:47 PM
New Member
 
Join Date: May 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pichardotech
Default

After spending sometime reading the GNUP doccumentation I found out about the subkeys. Thus now I know where that extra key is coming from. I'm testing on the command line import/export of the keys to see it that's the crux of the issue.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #24  
Old 05-21-2004, 05:16 PM
New Member
 
Join Date: Feb 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
suba
Default

If that worked, then like me, you probably need to use;
$gpghome = "/home/username/.gnupg";

in gpgcc.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #25  
Old 05-22-2004, 12:44 PM
New Member
 
Join Date: May 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pichardotech
Default

IT WORKS! Two weeks of hard work just paid off. A MILLION thanks suba for helping. Once I figure out how the keys and subkeys work I was able to encrypt/send/decrypt the orders. The path that ended up working on my system for $gpghome is "/home/username". I only have two more issues to work on and the shop is ready to go. I have to figure out how to send the expiration date (month/year) along with the cc number and how to decrypt the information on the email client.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #26  
Old 05-22-2004, 09:54 PM
New Member
 
Join Date: Feb 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
suba
Default

There are multiple ways to decrypt. Personally I like Windows Privacy Tray as it's application independent:
http://www.winpt.org
But the gnupg site has links to a number of email client plugins.

As for the date I haven't tried this but I'd expect you can do something like this -
in function before_process() add the line;
$this->cc_expire_date = "exp (m/y): " . $HTTP_POST_VARS['cc_expires_month'] . $HTTP_POST_VARS['cc_expires_year'];

then modify after_process() ;
$message = 'Order #' . $insert_id . "\n\n" . 'Number: ' . $this->cc_complete . "\n". $this->cc_expire_date . "\n";
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #27  
Old 05-24-2004, 02:08 PM
New Member
 
Join Date: May 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pichardotech
Default

Thanks again for the advise. I used both lines for the script but I had to change the first one to:

cc_expire_date = "exp (m/y): " . $HTTP_POST_VARS['cc_expires'];

It works like a charm! As for the decryption I tried different combinations of

1) Encryption/Decryption: PGP 8, GPG Exchange .9.1, WinPT and Enigmail.

2) Outlook, Outlook Express, Eudora, and Thunderbird

The combo that ended up being the most user fiendly was Thunderbird/Enigmail/WinPT.

Now we're planning to go live with the shop.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #28  
Old 08-20-2006, 02:01 PM
Lurker
 
Join Date: May 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tom344
Default

I am getitng blank emails when I try to use this contrib... here is my log file

gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/faq.html for more information
gpg: using PGP trust model
gpg: key 68CB1A37: accepted as trusted key
gpg: key C705BEB2: accepted as trusted key
gpg: using subkey A307613F instead of primary key C705BEB2
gpg: This key belongs to us
gpg: can't open `/var/www/vhosts/username/tmp/cc1e0c5e888f2f7fa90fe7e035e93e51anca': No such file or directory
gpg: /var/www/vhosts/username/tmp/cc1e0c5e888f2f7fa90fe7e035e93e51anca: encryption failed: file open error

the directory tmp is created and is chmod 777

any help on this would be appreciated
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Linkpoint - Which contrib to use? Please help! giyer osCommerce 2.2 Modification Help 13 02-13-2006 09:14 AM
Anyone he;p with errors installing the gift voucher contrib? obscure osCommerce 2.2 Modification Help 1 10-12-2004 07:56 AM
help with pwa contrib dmiles osCMax v1.7 Discussion 8 05-15-2004 03:50 PM
Ask A Qusetion Contrib?? Kristine osCMax v1.7 Discussion 1 04-11-2004 09:41 PM
What to add Contrib for contact us page Kristine osCMax v1.7 Discussion 2 04-08-2004 02:31 PM


All times are GMT -8. The time now is 10:19 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax