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
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.
-
Returns the authority's certificate serial number.
- key_identifier ( )
-
Returns the key identifier.
-
Returns the authority's ca.
-
Returns the authority's country.
-
Returns the authority's state.
-
Returns the authority's locality.
-
Returns the authority's organization.
-
Returns the authority's email.
-
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.
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 67:
You forgot a '=back' before '=head1'
You forgot a '=back' before '=head1'
- Around line 844:
You forgot a '=back' before '=head1'