Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

SSL client certificate appears to persist across web requests, but only under mod_perl

by batmobile1 (Initiate)
on Sep 26, 2008 at 15:09 UTC ( #713887=perlquestion: print w/ replies, xml ) Need Help??
batmobile1 has asked for the wisdom of the Perl Monks concerning the following question:

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?

Comment on SSL client certificate appears to persist across web requests, but only under mod_perl
Re: SSL client certificate appears to persist across web requests, but only under mod_perl
by kyle (Abbot) on Sep 26, 2008 at 15:29 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://713887]
Approved by kyle
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2014-09-21 19:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (175 votes), past polls