Subject: | PKCS12 support with LWP 6.x |
I'm having difficulty getting a PKCS12 certificate to work using new LWP
(6.x)... throwing out a lifeline here in case you folks can offer a
suggestion.
Basically, this code works under perl5.8.8 and old Crypt::SSLeay
(version 0.57) and LWP (version 5.826):
local $ENV{HTTPS_PKCS12_PASSWORD} = $sslPassword;
local $ENV{HTTPS_PKCS12_FILE} = $pkcs12_cert;
my $response = LWP::UserAgent->new->request(POST($url, Content =>
$content));
...but does not under perl5.14.2 and latest versions of Crypt::SSLeay
0.64) and LWP (6.03).
I understand that much ssl-related code has changed in LWP lately; is
P12 support known to still work? Should I be setting different
variables/options in order to get the certificate and password to be
picked up?
I've also tried passing this to LWP::UserAgent->new with no luck:
ssl_opts => {
SSL_use_cert => 1,
SSL_cert_file => $pkcs12_cert,
SSL_passwd_cb => sub { $sslPassword },
}
thanks very much for any direction at all you can provide.
(also just posted to
http://stackoverflow.com/questions/12627577/pkcs12-ssl-certificate-is-not-being-recognized
)