NAME

Crypt::Perl::X509::Name - Representation of Distinguished Name

SYNOPSIS

my $name = Crypt::Perl::X509::Name->new(

    #The keys are short OID names (e.g., C<postalCode>).
    streetAddress => '...',
    localityName => '...',

    #...
);

my $der = $name->encode();

DISCUSSION

This is useful to represent the Subject and Issuer parts of an X.509 (i.e., SSL/TLS) certificate as well as the name portion of a PCKS #10 Certificate Signing Request (CSR).

ABOUT commonName

Note that commonName is deprecated (cf. RFC 6125 §2.3, CA Browser Forum Baseline Requirements §7.1.4.2.2) here, but many CAs still require it as of December 2016.