[ic] Credit Card Encyption

Michael Mangeng interchange-users@interchange.redhat.com
Mon Aug 13 05:22:01 2001


hm... same problem here...

i get with the report mail:

----snip---
Credit Card Info:
visa 41 NEED ENCRYPTION 1111 1/03

 Payment Method: Credit Card (visa)
Account Number: 41**1111      Expiration: 1/03
---/snip---

i get in the pgp.*.err:
----snip---
gpg: %s: skipped: public key not found
gpg: [stdin]: encryption failed: public key not found
---/snip---

the strange thing is that from the command line all orders get interpreted
well but interchange always causes this error message...
i'm using following seetings in catalog.cfg:
----snip---
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  '__ENCRYPTORGPG__'
Route main        errors_to        '__ORDERS_TO__'
Route main        increment        0
Route main        pgp_cc_key       "interchange@vis.at"
Route main        pgp_key          "interchange@vis.at"
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
---/snip---
(i´ve inserted the target email adress for pgp_key and pgp_cc_key here.. if
i use ""  as the values of these, the effect is the same)

the important vars in variables.txt look like:
---snip---
ENCRYPTORPGP /usr/bin/pgp_shell.sh -fate __ORDERS_TO__ 2>>~/encrypt.err
ENCRYPTORGPG /usr/bin/gpg_shell.sh -ea --always-trust -r __ORDERS_TO__
2>>~/encrypt.err
ORDERS_TO       interchange@vis.at      Order
---/snip---
(i tried both, PGP from pgpi.com and gnupg from www.gnupg.org)
encrypt.err does not get created...

pgp_shell.sh and gpg_shell.sh look like:
---snip---
GNUPGPATH='/home/interchange/.gnugp'; export GNUPGPATH
/usr/bin/gpg $1 $2 $3 $4 $5 $6 $7
---/snip---
(pgp_shell with PGPPATH, .pgp and /usr/bin/pgp as binary)

as etc/report im using the one supplied wby the foundation demo.

i hope somebody can help me... i`ve tried many many permutations of the
seetings :))

thanx
mike
----- Original Message -----
From: "Garry" <gazonice@yahoo.com>
To: <interchange-users@interchange.redhat.com>
Sent: Friday, August 10, 2001 3:05 PM
Subject: Re: [ic] Credit Card Encyption


> I have made some progress on this subject (but not a lot):
>
> I at least get the "encryption failed" error message now.
>
> Does anyone know what the obvious possible causes for this error message
> might be?
>
> Also, where does one install the pgp program?, at the moment, mine is in a
> seperate folder of its own in the root directory of the web server  -  is
> this the correct place to put it?
>
> Any advice / suggestions would be greatly appreciated.
>
> Garry
>
> ----- Original Message -----
> From: "Corey Gilmore" <cfg@dln.uvm.edu>
> To: <interchange-users@interchange.redhat.com>
> Sent: Friday, August 10, 2001 1:10 AM
> Subject: RE: [ic] Credit Card Encyption
>
>
> > 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
> > >
> >
> >
> > _______________________________________________
> > 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
>