libZSservicesZSamazonka-certificatemanager-pcaZSamazonka-certificatemanager-pca
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CertificateManagerPCA.Types.ASN1Subject

Description

 
Synopsis

Documentation

data ASN1Subject Source #

Contains information about the certificate subject. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate.

See: newASN1Subject smart constructor.

Constructors

ASN1Subject' 

Fields

  • givenName :: Maybe Text

    First name.

  • state :: Maybe Text

    State in which the subject of the certificate is located.

  • commonName :: Maybe Text

    For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.

    Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.

  • organizationalUnit :: Maybe Text

    A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.

  • country :: Maybe Text

    Two-digit code that specifies the country in which the certificate subject located.

  • generationQualifier :: Maybe Text

    Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.

  • locality :: Maybe Text

    The locality (such as a city or town) in which the certificate subject is located.

  • pseudonym :: Maybe Text

    Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.

  • initials :: Maybe Text

    Concatenation that typically contains the first letter of the GivenName, the first letter of the middle name if one exists, and the first letter of the Surname.

  • title :: Maybe Text

    A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.

  • organization :: Maybe Text

    Legal name of the organization with which the certificate subject is affiliated.

  • serialNumber :: Maybe Text

    The certificate serial number.

  • surname :: Maybe Text

    Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.

  • distinguishedNameQualifier :: Maybe Text

    Disambiguating information for the certificate subject.

Instances

Instances details
Eq ASN1Subject Source # 
Instance details

Defined in Amazonka.CertificateManagerPCA.Types.ASN1Subject

Read ASN1Subject Source # 
Instance details

Defined in Amazonka.CertificateManagerPCA.Types.ASN1Subject

Show ASN1Subject Source # 
Instance details

Defined in Amazonka.CertificateManagerPCA.Types.ASN1Subject

Generic ASN1Subject Source # 
Instance details

Defined in Amazonka.CertificateManagerPCA.Types.ASN1Subject

Associated Types

type Rep ASN1Subject :: Type -> Type #

NFData ASN1Subject Source # 
Instance details

Defined in Amazonka.CertificateManagerPCA.Types.ASN1Subject

Methods

rnf :: ASN1Subject -> () #

Hashable ASN1Subject Source # 
Instance details

Defined in Amazonka.CertificateManagerPCA.Types.ASN1Subject

ToJSON ASN1Subject Source # 
Instance details

Defined in Amazonka.CertificateManagerPCA.Types.ASN1Subject

FromJSON ASN1Subject Source # 
Instance details

Defined in Amazonka.CertificateManagerPCA.Types.ASN1Subject

type Rep ASN1Subject Source # 
Instance details

Defined in Amazonka.CertificateManagerPCA.Types.ASN1Subject

type Rep ASN1Subject = D1 ('MetaData "ASN1Subject" "Amazonka.CertificateManagerPCA.Types.ASN1Subject" "libZSservicesZSamazonka-certificatemanager-pcaZSamazonka-certificatemanager-pca" 'False) (C1 ('MetaCons "ASN1Subject'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "givenName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "commonName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "organizationalUnit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "country") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "generationQualifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "locality") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "pseudonym") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "initials") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "organization") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "serialNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "surname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "distinguishedNameQualifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

newASN1Subject :: ASN1Subject Source #

Create a value of ASN1Subject with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:givenName:ASN1Subject', aSN1Subject_givenName - First name.

$sel:state:ASN1Subject', aSN1Subject_state - State in which the subject of the certificate is located.

$sel:commonName:ASN1Subject', aSN1Subject_commonName - For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.

Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.

$sel:organizationalUnit:ASN1Subject', aSN1Subject_organizationalUnit - A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.

$sel:country:ASN1Subject', aSN1Subject_country - Two-digit code that specifies the country in which the certificate subject located.

$sel:generationQualifier:ASN1Subject', aSN1Subject_generationQualifier - Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.

$sel:locality:ASN1Subject', aSN1Subject_locality - The locality (such as a city or town) in which the certificate subject is located.

$sel:pseudonym:ASN1Subject', aSN1Subject_pseudonym - Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.

$sel:initials:ASN1Subject', aSN1Subject_initials - Concatenation that typically contains the first letter of the GivenName, the first letter of the middle name if one exists, and the first letter of the Surname.

$sel:title:ASN1Subject', aSN1Subject_title - A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.

$sel:organization:ASN1Subject', aSN1Subject_organization - Legal name of the organization with which the certificate subject is affiliated.

$sel:serialNumber:ASN1Subject', aSN1Subject_serialNumber - The certificate serial number.

$sel:surname:ASN1Subject', aSN1Subject_surname - Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.

$sel:distinguishedNameQualifier:ASN1Subject', aSN1Subject_distinguishedNameQualifier - Disambiguating information for the certificate subject.

aSN1Subject_state :: Lens' ASN1Subject (Maybe Text) Source #

State in which the subject of the certificate is located.

aSN1Subject_commonName :: Lens' ASN1Subject (Maybe Text) Source #

For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.

Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.

aSN1Subject_organizationalUnit :: Lens' ASN1Subject (Maybe Text) Source #

A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.

aSN1Subject_country :: Lens' ASN1Subject (Maybe Text) Source #

Two-digit code that specifies the country in which the certificate subject located.

aSN1Subject_generationQualifier :: Lens' ASN1Subject (Maybe Text) Source #

Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.

aSN1Subject_locality :: Lens' ASN1Subject (Maybe Text) Source #

The locality (such as a city or town) in which the certificate subject is located.

aSN1Subject_pseudonym :: Lens' ASN1Subject (Maybe Text) Source #

Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.

aSN1Subject_initials :: Lens' ASN1Subject (Maybe Text) Source #

Concatenation that typically contains the first letter of the GivenName, the first letter of the middle name if one exists, and the first letter of the Surname.

aSN1Subject_title :: Lens' ASN1Subject (Maybe Text) Source #

A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject.

aSN1Subject_organization :: Lens' ASN1Subject (Maybe Text) Source #

Legal name of the organization with which the certificate subject is affiliated.

aSN1Subject_serialNumber :: Lens' ASN1Subject (Maybe Text) Source #

The certificate serial number.

aSN1Subject_surname :: Lens' ASN1Subject (Maybe Text) Source #

Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.

aSN1Subject_distinguishedNameQualifier :: Lens' ASN1Subject (Maybe Text) Source #

Disambiguating information for the certificate subject.