Subject: [Crypt::SSLeay] issues with https

Subject: [Crypt::SSLeay] issues with https

am 06.05.2005 18:08:44 von murali.thalanki

------_=_NextPart_001_01C55255.E0E0C21C
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi there,

This is the first time I am working on HTTPS connection thru Perl. I =
installed SSLeay from the below location:

ppm install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd

Then I executed a small script to connect one of our HTTPS server, but =
it gives the error:

C:\Test Programs>perl https.pl
Failed: 500 configure certs failed: failed to load csidev.p12: No such =
file or d
irectory
500 (Internal Server Error) configure certs failed: failed to load =
csidev.p12: N
o such file or directory
Client-Date: Fri, 06 May 2005 16:01:23 GMT

Script: I loaded the cerificate to the working directory

# PROXY SUPPORT
$ENV{HTTPS_PROXY} =3D 'http://proxy.entp.attws.com:8080';

# PROXY_BASIC_AUTH
#$ENV{HTTPS_PROXY_USERNAME} =3D 'username';
#$ENV{HTTPS_PROXY_PASSWORD} =3D 'password'; =20

# DEFAULT SSL VERSION
$ENV{HTTPS_VERSION} =3D '2';

# CLIENT CERT SUPPORT
#$ENV{HTTPS_CERT_FILE} =3D 'csidev.p12';
$ENV{HTTPS_KEY_FILE} =3D 'csidev.p12';
#$ENV{HTTPS_KEY_FILE} =3D 'certs/notacakeynopass.pem';

# CA CERT PEER VERIFICATION
$ENV{HTTPS_CA_FILE} =3D 'csidev.p12';
$ENV{HTTPS_CA_DIR} =3D 'C:/Downloads/Perl/Cerificate/'; =20

use LWP::UserAgent;
my $ua =3D LWP::UserAgent->new;
my $req =3D HTTP::Request->new(GET =3D> =
'https://stg-csiwww01.cingular.com:18443/Services/com/cingul ar/csi/cam/Ad=
dAccount.jws');
#my $req =3D =
HTTP::Request->new("POST",'https://stg-csiwww01.cingular.com :18443/Servic=
es/com/cingular/csi/cam/AddAccount.jws');
my $res =3D $ua->request($req);
if ($res->is_success)=20
{
print $res->as_string;
}=20
else=20
{
print "Failed: ", $res->status_line, "\n";
#print $res->content() . "\n";
print $res->as_string;
}

Please let me know what is missing in the script or need to download any =
module. I appreciate your help. Thanks in advance.

Thanks
Murali Thalanki
425-288-6589


------_=_NextPart_001_01C55255.E0E0C21C--

Re: Subject: [Crypt::SSLeay] issues with https

am 08.05.2005 02:01:03 von rho

On Fri, May 06, 2005 at 09:08:44AM -0700, Thalanki, Murali wrote:
> Then I executed a small script to connect one of our HTTPS server, but it gives the error:
>
> C:\Test Programs>perl https.pl
> Failed: 500 configure certs failed: failed to load csidev.p12: No such file or d
> irectory
> 500 (Internal Server Error) configure certs failed: failed to load csidev.p12: N
> o such file or directory
> Client-Date: Fri, 06 May 2005 16:01:23 GMT

> # CA CERT PEER VERIFICATION
> $ENV{HTTPS_CA_FILE} = 'csidev.p12';
> $ENV{HTTPS_CA_DIR} = 'C:/Downloads/Perl/Cerificate/';

I am not sure why the above error message is so neutral to you. Maybe
is it just a typo? You write 'Cerificate' in your program...

\rho