radical hacks PGP5.x for Linux and Selena Sol's Webstore
added some comments:
The following are the steps I took (with Gunther's guidance) to get Selena Sol's Webstore working with PGP5.x for Linux. I make no guarantees, though I'm fairly sure these are correct as I have done it twice now. The following assumes y ou have PGP5 compiled and installed correctly on your Linux Server AND your webstore works perfectly (only the data is not encrypted). Please be sure these two things are true before continuing.
If you find a step missing, please let me know so that I can update it! ()
After the above two things are satisfied, do the following steps:
First you need to create your public/private keys. Login to your linux account and type:
Then just answer the prompts to complete creation of your keys. Make note of your userid as you will need it to complete the setup. Usually in the format:
DO NOT FORGET YOUR PASS PHRASE!! If you do, you will not be able to decrypt incoming messages.
Edit the pgp.cfg file that is created in the ~/.pgp directory to reflect the userid you listed in the step above (line 10)
Copy the following files from the ~/.pgp directory into your Pgpfiles directory (usually ~/Web_store/Pgpfiles):
Change the permissions on those four files to rw-r--r-- by going to the Pgpfiles directory and typing:
chmod 644 *
Download the new pgp-lib5.pl file.
Upload to your linux server and put into the Library directory of the webstore. I would backup the old pgp-lib.pl file:
cp pgp-lib.pl old-pgp-lib.pland then cp the new one into place:
cp pgp-lib5.pl pgp-lib.pl
Edit the pgp-lib.pl file:
On line number 47, replace:
Gunther Birznieks <gunther\@extropia.com>
with your own userid (the one you typed in when you created your keys... be sure to keep the \ in front of the @ sign even though you didn't type that in when creating your keys).On line number 48, replace:
./.pgpwith the full path to your Pgpfiles directory (you might be able to get it to work another way, this is just the way I did it). For example:
Save and close that file.
Open your setup file (I used web_store.setup.frames), and change the:
$sc_use_pgp = "no";to read:
$sc_use_pgp = "yes";
That's it... now place an order and you should get an encrypted email. :) Decrypt THAT and you have the order you just placed!
Written by Tina Tindall,
It took me days to work out why I couldnt get PG to work. It was a simply chown on the Pgpfiles which need to be set to whatever the server the server runs as In our case chown nobody *.* and chgrp 9999 *.* Worked a treat after that. Regards Mick