Crypt::Perl::X509::Extension::policyConstraints
my $usage_obj = Crypt::Perl::X509::Extension::policyConstraints->new( requireExplicitPolicy => 4, inhibitPolicyMapping => 6, );
https://tools.ietf.org/html/rfc5280#section-4.2.1.11
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.