Web::ID::Certificate(3pm) | User Contributed Perl Documentation | Web::ID::Certificate(3pm) |
Web::ID::Certificate - an x509 certificate
my $cert = Web::ID::Certificate->new(pem => $pem_encoded_x509); foreach (@{ $cert->subject_alt_names }) { say "SAN: ", $_->type, " = ", $_->value; }
This is usually the only attribute you want to pass to the constructor. Allow the others to be built automatically.
This is not used in WebID authentication, but may be used as an identifier for the certificate if you need to keep it in a cache.
The coderef is passed a hash (not hashref) along the lines of:
( type => 'uniformResourceIdentifier', value => 'http://example.com/id/alice', )
You can optionally pass it a DateTime object to use instead of the current system time.
Please report any bugs to <http://rt.cpan.org/Dist/Display.html?Queue=Web-ID>.
Web::ID, Web::ID::SAN, Web::ID::RSAKey.
Web::ID::Certificate::Generator - augments this class to add the ability to generate new WebID certificates.
Crypt::X509 provides a pure Perl X.509 certificate parser, and is used internally by this module.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2012 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
2017-08-28 | perl v5.26.0 |