Crypt::Perl::PKCS10::Attributes - CSR “attributes” collection
#Each object passed should be an instance of a subclass of #Crypt::Perl::PKCS10::Attribute (NB: not this class!) my $attrs = Crypt::Perl::PKCS10::Attributes->new( @ATTR_OBJS ); #...or: my $attrs = Crypt::Perl::PKCS10::Attributes->new( [ $attr_type1 => \@args1 ], [ $attr_type2 => \@args2 ], ); #...for example: my $attrs = Crypt::Perl::PKCS10::Attributes->new( [ challengePassword => 'iNsEcUrE' ], );
Instances of this class represent the “attributes” collection in a PKCS #10 Certificate Signing Request.
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.
The following X.509 extensions are supported:
extensionRequest
challengePassword (Note that this attribute does NOT encrypt anything; don’t encode any values that are sensitive data!)
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.