Crypt::OpenSSL::X509 - Perl extension to OpenSSL's X509 API.
use Crypt::OpenSSL::X509; my $x509 = Crypt::OpenSSL::X509->new_from_file('cert.pem'); print $x509->pubkey() . "\n"; print $x509->subject() . "\n"; print $x509->issuer() . "\n"; print $x509->email() . "\n"; print $x509->hash() . "\n"; print $x509->notBefore() . "\n"; print $x509->notAfter() . "\n";
This implement a large majority of OpenSSL's useful X509 API. The email() method supports both certificates where the subject is of the form: "... CN=Firstname lastname/emailAddress=user@domain", and also certificates where there is a X509v3 Extension of the form "X509v3 Subject Alternative Name: email=user@domain".
None by default.
On request:
FORMAT_UNDEF FORMAT_ASN1 FORMAT_TEXT FORMAT_PEM FORMAT_NETSCAPE FORMAT_PKCS12 FORMAT_SMIME FORMAT_ENGINE FORMAT_IISSGC
OpenSSL(1), Crypt::OpenSSL::RSA, Crypt::OpenSSL::Bignum
Dan Sully, <daniel@cpan.org>
Copyright 2004-2007 by Dan Sully
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Crypt::OpenSSL::X509, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::OpenSSL::X509
CPAN shell
perl -MCPAN -e shell install Crypt::OpenSSL::X509
For more information on module installation, please visit the detailed CPAN module installation guide.