Hi

I am currently having a problem with Client-SSL authentification with version 0.37. I am given a pkcs#7 type certificate which I have converted to PEM using openssl 0.9b. It passes through use_certificate_file without issue.

However when I use LWP to connect I keep receiving a 403.7 on the host IIS system. Any Light you can shed would be greatfully appreciated

Here is an example of what I am using.


#!/usr/bin/perl

use HTTP::Request::Common;
use LWP::Debug qw(+);
use LWP::UserAgent;

my $uploadUrl = "https://XXXXXXXXXXXXXXX";

$ENV{'HTTPS_DEBUG'} = 1;

$ENV{'HTTPS_VERSION'} = '3';

$ENV{'HTTPS_CERT_FILE'} = 'cert.pem';

my $ua = LWP::UserAgent->new;

my $response = $ua->request(GET $uploadUrl);

#print $response->content;
print "\n\n\n\n\n";
#print $ua;
print $response->as_string;

if ($response->is_success) {
print "OK\n";
#print $response->content;
} else {
# print $response->error_as_HTML;
}

Thanks
Patrick

Reply via email to