[ic] Credit Card Encyption

Corey Gilmore interchange-users@interchange.redhat.com
Thu Aug 9 20:12:01 2001


I think part of my problem may be that pgp isn't working for some reason.
I have 6.5.8, not the 5.x that all docs (except my IC books!) refer to, so
I have a different binary.  emails are changed to avoid spam.

$ export PGPPATH=/home/ic/.pgp/
$ cat /etc/issue | pgp -fate professional@ced.tld
Pretty Good Privacy(tm) Version 6.5.8
(c) 1999 Network Associates Inc.
Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc.
Export of this software may be restricted by the U.S. government.


received signal 11


Is there a reason why this would fail?  The docs for 4.8 show pgp -feat as
the default for ENCRYPTOR...

The key is on my keyring,
$ pgp -kv
Type bits      keyID      Date       User ID
DSS  1024/1024 0xE1AB9BC5 2001/08/09 Professional Programs <professional@ced.tld>
1 matching key found.

The error (shown in red ;) is
Credit Card Information (Credit card encryption failed: )

$cat /usr/bin/pgp_shell.sh
#!/bin/sh

PGPPATH=/home/ic/.pgp; export PGPPATH
/usr/bin/pgp $1 $2 $3 $4 $5 $6 $7

and from my catalog.cfg

Variable  MV_PAYMENT_MODE   minivend_test
CreditCardAuto      No
CyberCash	No
EncryptProgram   __ENCRYPTOR__

Route main        attach           0
Route main        credit_card      0
Route main        cybermode        ""
Route main        default          1
Route main        email            '__ORDERS_TO__'
Route main        encrypt          0
Route main        encrypt_program  '/usr/bin/pgp_shell.sh -fate professional@ced.tld 2>/dev/null'
Route main        errors_to        'cgilmore@dln.tld'
Route main        increment        0
Route main        pgp_cc_key       ""
Route main        pgp_key          "0xE1AB9BC5"
Route main        receipt          etc/receipt.html
Route main        report           etc/report
Route main        supplant         0
Route main        individual_track orders
Route main        track            logs/tracking.asc

# i have different email addresses here for debugging

I've also tried setting the ENCRYPTOR variable and using that everywhere,
and setting it to pgp -feat as suggested in the ic docs.  Always though,
it fails.  If i get rid of the encryptor variable (or delete the values
for encrypt_program) it sends me an unencrypted email, with my CC info.

any ideas?

.cfg

On Thu, 9 Aug 2001, Ron Phipps wrote:

> > Just out of curiousity, what do you have CreditCardAuto set to?  And
> did
> > you comment out the CYBEr_MODE def?  And are you using the
> minivend_test
> > payment mode? I am going crazy with this at the moment :/
> >
> > thanks
> > .cfg
> >
>
> Variable  MV_PAYMENT_MODE   custom signio
> CreditCardAuto No
>
> Cybermode is set to "" in each route.  I removed the ifdef cybermode
> code to clean up the config file a bit.
>
> Let me know if you need more information.
> -Ron
>
> P.S. Have you tried outputting the PGP call to a text file to see what
> it is doing when IC calls it?  Is the user's public key in the keyring
> for the user that runs IC?
>
>
> > On Thu, 9 Aug 2001, Ron Phipps wrote:
> >
> > > Here is the relevant info from a catalog that is working in live
> mode
> > > right now.  ENCRYPTOR is defined as:
> > >
> > > /usr/bin/pgp_shell.sh -fate __ORDERS_TO__ 2>/dev/null
> > >
> > > in my variables table.  The contents of my pgp wrapper named
> > > 'pgp_shell.sh' is:
> > >
> > > PGPPATH=/home/minivend/.pgp; export PGPPATH
> > > /usr/bin/pgp $1 $2 $3 $4 $5 $6 $7
> > >
> > > And the route in catalog.cfg:
> > >
> > > Route main        attach           0
> > > Route main        credit_card      0
> > > Route main        cybermode        ""
> > > Route main        default          1
> > > Route main        email            '__ORDERS_TO__'
> > > Route main        encrypt          0
> > > Route main        encrypt_program  '__ENCRYPTOR__'
> > > Route main        errors_to        '__ORDERS_TO__'
> > > Route main        increment        0
> > > Route main        pgp_cc_key       ""
> > > Route main        pgp_key          ""
> > > Route main        receipt          etc/receipt.html
> > > Route main        report           etc/report
> > > Route main        supplant         1
> > > Route main        individual_track orders
> > > Route main        track            logs/tracking.asc
> > >
> > > Good luck!
> > > -Ron
> > >
> > > > -----Original Message-----
> > > > From: interchange-users-admin@interchange.redhat.com
> > > [mailto:interchange-
> > > > users-admin@interchange.redhat.com] On Behalf Of Garry
> > > > Sent: Thursday, August 09, 2001 9:11 AM
> > > > To: interchange-users@interchange.redhat.com
> > > > Subject: Re: [ic] Credit Card Encyption
> > > >
> > > > I would love to see a working example of the Catalog.cfg - I have
> > > tried
> > > > many
> > > > combinations, to no avail
> > > >
> > > >
> > > > PGP version is 6.5.8, on Linux 6.2
> > > >
> > > > This is what my catalog.cgf looks like on my most recent, non
> > > productive
> > > > attempt:
> > > >
> > > > Please help me mend this......... ..
> > > >
> > > > #Variable    COMPANY          Whatever
> > > > #Variable    ENCRYPTOR       ./pgp
> > > >
> > > > # Main route must be last to make default
> > > > Route main        attach           1
> > > > Route main        credit_card      1
> > > > Route main        cybermode        ""
> > > > Route main        default          1
> > > > Route main        email            '__ORDERS_TO__'
> > > > Route main        encrypt          1
> > > > Route main        encrypt_program
> > > >  '/home/whatever/pgp-6.5.8/./pgp -feast -a'
> > > > Route main        errors_to        '__ORDERS_TO__'
> > > > Route main        increment        0
> > > > Route main        pgp_cc_key       "username"
> > > > Route main        pgp_key          ""
> > > > Route main        receipt          etc/receipt.html
> > > > Route main        report           etc/report
> > > > Route main        supplant         0
> > > > Route main        individual_track orders
> > > > Route main        track            logs/tracking.asc
> > > >
> > > > Many Thanks - Garry
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Michael Mangeng" <interchange@vis.at>
> > > > To: <interchange-users@anthrax.interchange.redhat.com>
> > > > Sent: Thursday, August 09, 2001 3:02 PM
> > > > Subject: Re: [ic] Credit Card Encyption
> > > >
> > > >
> > > > > hmmmm.... as the most of you know, I`ve got the same problem...
> > > > > Isn't there anywhere a brave knight who can help us ? :-)
> > > > >
> > > > > Please could anybody post at least a example which works...
> maybe
> > > this
> > > > would
> > > > > help...
> > > > > i have no "pgpe" here.. only a "pgp" executeable..
> > > > >
> > > > > thanx
> > > > > mike
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Garry" <gazonice@yahoo.com>
> > > > > To: <interchange-users@anthrax.interchange.redhat.com>
> > > > > Sent: Tuesday, August 07, 2001 9:10 PM
> > > > > Subject: [ic] Credit Card Encyption
> > > > >
> > > > >
> > > > > > I have some, but not a lot, of progress:
> > > > > >
> > > > > > Trying to encrypt the Credit Card number on the report email:
> > > > > >
> > > > > > The emails arrive, with the Credit card line number missing -
> > > anyone
> > > > have
> > > > > > any idea what I am doing wrong? - does the report email need
> > > altering
> > > > in
> > > > > any
> > > > > > way to enable CC encryption?
> > > > > >
> > > > > > I am using PGP6.5.8 on Linux 6.2
> > > > > >
> > > > > > Any help would be gratefully appreciated.
> > > > > >
> > > > > > Gaz
> > > > > >
> > > > > >
> > > > > > _________________________________________________________
> > > > > > Do You Yahoo!?
> > > > > > Get your free @yahoo.com address at http://mail.yahoo.com
> > > > > >
> > > > > > _______________________________________________
> > > > > > interchange-users mailing list
> > > > > > interchange-users@lists.akopia.com
> > > > > > http://lists.akopia.com/mailman/listinfo/interchange-users
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > interchange-users mailing list
> > > > > interchange-users@interchange.redhat.com
> > > > > http://interchange.redhat.com/mailman/listinfo/interchange-users
> > > >
> > > >
> > > > _________________________________________________________
> > > > Do You Yahoo!?
> > > > Get your free @yahoo.com address at http://mail.yahoo.com
> > > >
> > > > _______________________________________________
> > > > interchange-users mailing list
> > > > interchange-users@interchange.redhat.com
> > > > http://interchange.redhat.com/mailman/listinfo/interchange-users
> > >
> > > _______________________________________________
> > > interchange-users mailing list
> > > interchange-users@interchange.redhat.com
> > > http://interchange.redhat.com/mailman/listinfo/interchange-users
> > >
> >
> > _______________________________________________
> > interchange-users mailing list
> > interchange-users@interchange.redhat.com
> > http://interchange.redhat.com/mailman/listinfo/interchange-users
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
>