For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2007 > HTTPS, Perl and X.509 certificate









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author HTTPS, Perl and X.509 certificate
steve

2007-07-18, 6:59 pm

Hi all,

I'm trying to automate a process whereby a user has to log on to a website
and download a file to a local directory every day. The website requires an
X.509 certificate (which I have), but I'm not sure where to start in
incorporating this certificate into my HTTPS request.

The certificate is currently in .pfx format, and I think I need to extract
the certificate and private key from this .pfx and somehow reference them in
my perl script, but don't really know where to start.

Any pointers would be appreciated!

Thanks
steve


John

2007-07-19, 7:59 am


"steve" <steve@nospamtoday.thanks> wrote in message
news:Taqni.12881$Jc7.3892@fe03.news.easynews.com...
> Hi all,
>
> I'm trying to automate a process whereby a user has to log on to a website
> and download a file to a local directory every day. The website requires
> an X.509 certificate (which I have), but I'm not sure where to start in
> incorporating this certificate into my HTTPS request.
>
> The certificate is currently in .pfx format, and I think I need to extract
> the certificate and private key from this .pfx and somehow reference them
> in my perl script, but don't really know where to start.
>
> Any pointers would be appreciated!
>
> Thanks
> steve
>


Look at CPAN at Crypt::X509 which parses X.509 certificates.

Regards
John



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com