I have code that makes two web service calls over SSL using SOAP::Lite, each to a different endpoint. The first requires an SSL client certificate, for which I set environment variables for Crypt::SSLeay ($ENV{HTTPS_CERT_FILE}, $ENV{HTTPS_KEY_FILE}, $ENV{HTTPS_CA_FILE}). The second does not require a client certificate, but SSL negotiation fails, apparently because the certificate is still being used.
I've tried to solve this by unsetting the environment variables after the first call. With this added logic, the second web service call works perfectly when I run the code from command-line Perl, but it still fails when it runs under mod_perl.
Why is the behavior different under mod_perl?
In reply to SSL client certificate appears to persist across web requests, but only under mod_perl by batmobile1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |