1X509(3) User Contributed Perl Documentation X509(3)
2
3
4
6 Crypt::OpenSSL::X509 - Perl extension to OpenSSL's X509 API.
7
9 use Crypt::OpenSSL::X509;
10
11 my $x509 = Crypt::OpenSSL::X509->new_from_file('cert.pem');
12
13 print $x509->pubkey() . "\n";
14 print $x509->subject() . "\n";
15 print $x509->issuer() . "\n";
16 print $x509->email() . "\n";
17 print $x509->hash() . "\n";
18 print $x509->notBefore() . "\n";
19 print $x509->notAfter() . "\n";
20
22 Crypt::OpenSSL::X509 - Perl extension to OpenSSL's X509 API.
23
25 This implement a large majority of OpenSSL's useful X509 API.
26
27 The email() method supports both certificates where the
28 subject is of the form:
29 "... CN=Firstname lastname/emailAddress=user@domain", and also
30 certificates where there is a X509v3 Extension of the form
31 "X509v3 Subject Alternative Name: email=user@domain".
32
33 EXPORT
34
35 None by default.
36
37 On request:
38
39 FORMAT_UNDEF FORMAT_ASN1 FORMAT_TEXT FORMAT_PEM FORMAT_NETSCAPE
40 FORMAT_PKCS12 FORMAT_SMIME FORMAT_ENGINE FORMAT_IISSGC
41
43 OpenSSL(1), Crypt::OpenSSL::RSA, Crypt::OpenSSL::Bignum
44
46 Dan Sully, <daniel@cpan.org>
47
49 Copyright 2004-2007 by Dan Sully
50
51 This library is free software; you can redistribute it and/or modify it
52 under the same terms as Perl itself.
53
54
55
56perl v5.8.8 2007-01-03 X509(3)