CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Extract expiration date from a PFX file digital certificate

 



mattman
New User

Jan 29, 2009, 1:13 PM

Post #1 of 2 (1403 views)
Extract expiration date from a PFX file digital certificate Can't Post

Usng Perl, I need to be able to extract the expiration date from a PFX file digital certificate.

I have limited options when it comes to installing new modules on our AIX server, so if ghere is a way using Crypt::SSLeay, then I would be very appreciative if someone could help me.

Thanks


1arryb
User

Feb 26, 2009, 10:43 AM

Post #2 of 2 (1317 views)
Re: [mattman] Extract expiration date from a PFX file digital certificate [In reply to] Can't Post

mattman,

A quick Google indicates that the trick is decoding the certificate, not parsing the result. Here's one writeup at: http://www.planetlarg.net/closed-source/websec-certificate-decode.htm. Once you've got the certificate in plain text, it will be trivial to extract the expiration date.

update: For more on PFX and related standards, try the X.509 wiki at: http://en.wikipedia.org/wiki/X.509

Good luck,

Larry


(This post was edited by 1arryb on Feb 26, 2009, 10:46 AM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives