
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] How IC 4.6.5 calls EncryptProgram
At 04:05 PM 08/10/2001 -0400, you wrote:
>Well I wrote a little wrapper for PGP 6.5.8,
>
>
>#!/usr/bin/perl -w
>
>use File::Temp;
>
>($fh, $filename) = File::Temp::tempfile() or die "couldn't create temp
>file: $!";
>#($fh-out, $output) = File::Temp::tempfile() or die "couldn't create temp
>file: $!";
>
>#print "filename: $filename\nhandle: $fh\n";
>
>while( <> ) {
> print $fh $_;
>}
>
>$out = $filename . ".asc";
>system "/usr/bin/pgp -eat $filename user\@host.com 2>/dev/null";
>system "/bin/cat $out";
>`/usr/bin/pgp -w $filename 2>/dev/null`;
>`/usr/bin/pgp -w $out 2>/dev/null`;
>return 0;
>#end
>
>yes, its not perfect, but its to help me diagnose whats wrong with my
>config.
>
>$ cat /etc/issue.net | /usr/bin/pgpe
>
>spits out the encrypted message on stdout.
>
>So now, the only time this DOESN'T work, is when IC calls it, I still get
>the 'Credit card encryption failed: ' error
>
>What I can't figure out is how IC calls the EncryptProgram.
>
>Any ideas?
It opens it like a filehandle - take a look at sub encrypt_cc() in
interchange/lib/Vend/Order.pm. If you are having trouble, have you tried
adding ' 2>>~/encrypt.err' to the end of your ENCRYPTOR string? This
should force PGP to log its complaints to a file called encrypt.err in the
IC user's home directory.
- Ed L.
>thanks,
>corey
>
> From catalog.cfg
>
>Variable ORDER_ROUTES log main copy_user
>Variable MV_PAYMENT_MODE minivend_test
>CreditCardAuto No
>
># Main route must be last to make default
>Route main attach 0
>Route main credit_card 0
>Route main cybermode ""
>Route main default 1
>Route main email 'cfg@dln.uvm.edu'
>Route main encrypt 0
>Route main encrypt_program __ENCRYPTOR__
>Route main errors_to 'cgilmore@dln.uvm.edu'
>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
>
>Variable ENCRYPTOR /usr/bin/pgpe
>EncryptProgram __ENCRYPTOR__
>
>_______________________________________________
>interchange-users mailing list
>interchange-users@interchange.redhat.com
>http://interchange.redhat.com/mailman/listinfo/interchange-users
===============================================================
New Media E.M.S. Software Solutions for Business
463 Main St., Suite D eCommerce | Consulting | Hosting
Placerville, CA 95667 edl@newmediaems.com
(530) 622-9421 http://www.newmediaems.com
(866) 519-4680 Toll-Free (530) 622-9426 Fax
===============================================================
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users