I've got an application that uses PFProAPI.pm for credit card processing. It has been running successfully for one client, under Apache2/mod_perl2, for about a year and a half. I'm in the process of setting it up for another client. I've got it working correctly under CGI, but whenever I try to process a payment under mod_perl I get the error:
"The certificate chain did not validate, no local certificate found, Cert Path"
I can't figure out what is different in the mod_perl environment. The environment variable PFPRO_CERT_PATH is set in the shell, is also set using SetPerlEnv right after loading mod_perl, and is set again in the application using $ENV{'PFPRO_CERT_PATH'}='/usr/local/certs/'. As far as I can tell, the permissions on the file and directory are set correctly.
Anyhow, I'm about ready to pull my hair out on this one. Any ideas? I just don't see why the application is working correctly from normal CGI but not from mod_perl. I'm using Perl 5.6.2.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.