[How to] setup credit card number encryption key filepath?

Posts: 89
Joined: 06/24/2008

Does anyone know what to include in Card number encryption key filepath which is mentioned at http://www.ubercart.org/docs/user/2731/credit_card_settings#security

mysite
mysite/www <-- Drupal installed here.
mysite/keys

I couldn't understand which path to keep in the keyfile path..... I have created a folder-"uberencrypt" in root with chmod 777. Durpal is installed at /public_html/drupal

Posts: 89
Joined: 06/24/2008

Is Configuration of "PayPal Website Payments Pro" in "User's Guide"? I didn't found there.

Does WPP works for India. I've an Indian business paypal account and got the API from paypal. Don't know whether WPP will work or not for my country, but giving it a try as I've API.

Posts: 63
Joined: 04/16/2008
Cool profile pic award.

your file structure may look something like this;
/home/your-user-name/
your website is located at;
/home/your-user-name/public_html/
and in your case you chose to install drupal in a sub folder;
/home/your-user-name/public_html/drupal/

where you want your key is in a folder NOT public accessable. You say you created your keyfolder in root, root means many things. so, lets clarify. this is where your keyfolder should be;
/home/your-user-name/uberencrypt/

Now if that is where you have it then we are in good shape. However, because you have drupal installed in a sub folder you may have to make your entry like this; ../../uberencrypt in order to get it to work.

Posts: 89
Joined: 06/24/2008

That worked. Thanks.

Do I need to change ../../uberencrypt keyfile paht when I shift my drupal folder (public_html/drupal) to root (in public_html)?

After the file gets encrypted, which chmod should I use for the uc_credit.key and its folder?

Posts: 63
Joined: 04/16/2008
Cool profile pic award.

Glad that worked for you.

if you move Drupal install files to the www root you will need to remove one set of the ../ because you will be one level closer to your folder. As far as your permissions the keyfile folder should be 744 or 740 and the keyfile itself should have been set 644 by Drupal.