Alexander Jung wrote:
Hello,

On Tue, 1 Mar 2005 18:30:36 +0100, Alexander Jung
<[EMAIL PROTECTED]> wrote:

i try to decode X509 Certificates (as stored in
userCertificate;binary) using this test-script:
[ ... ]


ok, after finding an exact example for my problem in the distribution
of Convert::ASN1, please forget my question to the mailinglist.

*covering head with ashes*,

I have taken the x509 ASN.1 certificate profile definition from the x509decode script and written my own library, which I was planning to release to CPAN, but it's not finished yet. It is mostly working, except for decoding cert extensions and constructing DNs on-the-fly.


Namely, it lets you extract single items, like:

$cert->issuer;
$cert->expiration_date;
$cert->subject;
$cert->pubkey;

etc...

It's quite slow, though. On my 500Mhz P3 test machine, it takes ~0,7s to decode a cert with the pure perl method. On modern machines, it might be so fast that you can't even notice it (I hope so).

Are you interested in something like that?

--
mike

Reply via email to