Mike Jackson > Crypt-X509-0.01 > Crypt::X509

Download:
Crypt-X509-0.01.tar.gz

Dependencies

Annotate this POD

Related Modules

Net::SAML
Convert::ASN1
more...
By perlmonks.org

CPAN RT

New  4
Open  2
View/Report Bugs
Module Version: 0.01   Source   Latest Release: Crypt-X509-0.51

NAME ^

Crypt::X509 - Parses an X.509 certificate

SYNOPSIS ^

 use Crypt::X509;

 $cert = Crypt::X509->new( cert => $cert );

 $subject_email = $cert->subject_email;

REQUIRES ^

Convert::ASN1

DESCRIPTION ^

Crypt::X509 parses X.509 certificates. Methods are provided for accessing most certificate elements.

CONSTRUCTOR ^

new ( OPTIONS )

Creates and returns a parsed X.509 certificate object.

cert => $certificate

A variable containing the DER formatted certificate to be parsed.

METHODS ^

pubkey_algorithm ( )

Returns the algorithm which the public key was created with.

pubkey ( )

Returns the certificate's public key in DER format.

version ( )

Returns the certificate's version.

serial ( )

Returns the certificate's serial number.

sig_algorithm ( )

Returns the certificate's signature algorithm.

not_before ( )

Returns the certificate's beginning date of validity.

not_after ( )

Returns the certificate's ending date of validity.

signature ( )

Return's the certificate's signature in DER format.

subject_country ( )

Returns the subject's country.

subject_state ( )

Returns the subject's state or province.

subject_org ( )

Returns the subject's organization.

subject_ou ( )

Returns the subject's organizational unit.

subject_cn ( )

Returns the subject's common name.

subject_email ( )

Returns the subject's email address.

issuer_cn ( )

Returns the issuer's common name.

issuer_country ( )

Returns the issuer's country.

issuer_state ( )

Returns the issuer's state or province.

issuer_locality ( )

Returns the issuer's locality.

issuer_org ( )

Returns the issuer's organization.

issuer_email ( )

Returns the issuer's email address.

authority_serial ( )

Returns the authority's certificate serial number.

key_identifier ( )

Returns the key identifier.

authority_ca ( )

Returns the authority's ca.

authority_country ( )

Returns the authority's country.

authority_state ( )

Returns the authority's state.

authority_locality ( )

Returns the authority's locality.

authority_org ( )

Returns the authority's organization.

authority_email ( )

Returns the authority's email.

authority_crl ( )

Returns the authority's crl in DER format.

ACKNOWLEDGEMENTS ^

This module is based on the x509decode script, which was contributed to Convert::ASN1 in 2002 by Norbert Klasen.

AUTHOR ^

Mike Jackson <mj@sci.fi>

COPYRIGHT ^

Copyright (c) 2005 Mike Jackson <mj@sci.fi>. Copyright (c) 2001-2002 Norbert Klasen, DAASI International GmbH.

All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: