Crypt::Perl::X509::Extension::subjectAltName - X.509 subjectAltName extension
my $san = Crypt::Perl::X509::Extension::subjectAltName->new( [ dNSName => 'foo.com' ], [ dNSName => 'bar.com' ], [ rfc822Name => 'haha@tld.com' ], );
Instances of this class represent a subjectAltName extension of an X.509 (SSL) certificate.
subjectAltName
You probably don’t need to instantiate this class directly; instead, you can instantiate it implicitly by listing out arguments to Crypt::Perl::PKCS10’s constructor. See that module’s SYNOPSIS for an example.
You can also use instances of this class as arguments to Crypt::Perl::PKCS10::Attribute::extensionRequest’s constructor to include a request for a subjectAltName extension in a PKCS #10 Certificate Signing Request.
https://tools.ietf.org/html/rfc5280#section-4.2.1.6
To install Crypt::Perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::Perl
CPAN shell
perl -MCPAN -e shell install Crypt::Perl
For more information on module installation, please visit the detailed CPAN module installation guide.