osCmax v2.5 User Manual
Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

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 ...

      
  1. #21
    New Member
    Join Date
    Feb 2004
    Posts
    13
    Rep Power
    0


    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.

  2. #22
    New Member
    Join Date
    May 2004
    Posts
    9
    Rep Power
    0


    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?

  3. #23
    New Member
    Join Date
    May 2004
    Posts
    9
    Rep Power
    0


    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.

  4. #24
    New Member
    Join Date
    Feb 2004
    Posts
    13
    Rep Power
    0


    Default

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

    in gpgcc.php

  5. #25
    New Member
    Join Date
    May 2004
    Posts
    9
    Rep Power
    0


    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.

  6. #26
    New Member
    Join Date
    Feb 2004
    Posts
    13
    Rep Power
    0


    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";

  7. #27
    New Member
    Join Date
    May 2004
    Posts
    9
    Rep Power
    0


    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.


  8. #28
    Lurker
    Join Date
    May 2006
    Posts
    4
    Rep Power
    0


    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

Page 3 of 3 FirstFirst 123

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •