I found a web site, I will try it later...
openssl.exe pkcs12 -in mycert.pfx -out mycert.pem -nodes
openssl.exe rsa -in mycert.pem -out mycertkey.pem
openssl.exe x509 -in mycert.pem >> mynewcert.pem
# CLIENT PKCS12 CERT SUPPORT
$ENV{HTTPS_CERT_FILE} = 'mycert.pem';
$ENV{HTTPS_KEY_FILE} = 'mycertkey.pem';
Regards,
/HT
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Sent: Monday, May 14, 2007 1:09 PM
> To: [email protected]
> Subject: RE: LWP and client certificate
>
> Thanks,
>
> I have a file "mysert.pfx", password is mypass.
>
> I added next 2 lines:
>
> $ENV{HTTPS_PKCS12_FILE} = 'C:/mysert.pfx';
> $ENV{HTTPS_PKCS12_PASSWORD} = 'mypass';
>
> The rwesult is:
> 500 configure certs failed: Private key and certificate do not match
>
> Is it possible on WindowsXP/AP588?
>
> By IE, I imported "mysert.pfx", and I can access to my server.
>
> Regards,
> /HT
>
>
> > -----Original Message-----
> > From: Mark Dootson [mailto:[EMAIL PROTECTED]
> > Sent: Monday, May 14, 2007 12:23 PM
> > Cc: [email protected]
> > Subject: Re: LWP and client certificate
> >
> > LWP uses Crypt::SSLeay
> >
> > so
> >
> > # client certificate support
> > $ENV{HTTPS_CERT_FILE} = 'certs/notacacert.pem';
> > $ENV{HTTPS_KEY_FILE} = 'certs/notacakeynopass.pem';
> >
> > # CA cert peer verification
> > $ENV{HTTPS_CA_FILE} = 'certs/ca-bundle.crt';
> > $ENV{HTTPS_CA_DIR} = 'certs/';
> >
> > # Client PKCS12 cert support
> > $ENV{HTTPS_PKCS12_FILE} = 'certs/pkcs12.pkcs12';
> > $ENV{HTTPS_PKCS12_PASSWORD} = 'PKCS12_PASSWORD';
> >
> >
> > Regards
> >
> > Mark
> >
> >
> > >
> > > I'm making WWW client using LWP.
> > > The purpose is as a tool to see responce from
> > > www server.
> > >
> > > Now I can access to ssl site, for example,
> > > https://www.nodeworks.com/
> > > documented in LWP.
> > >
> > > But My server in test requests the client the
> > > clinent certificate, of cause I have a valid one.
> > >
> > > Can someone show me how to let LWP::UserAgent to use
> > > my client certificate?
> > >
> > > Regards,
> > > Hirosi Taguti
> > > _______________________________________________
> > > Perl-Win32-Users mailing list
> > > [email protected]
> > > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> >
> >
> >
> _______________________________________________
> Perl-Win32-Users mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs