Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data ASN1Subject = ASN1Subject' {
- givenName :: Maybe Text
- state :: Maybe Text
- commonName :: Maybe Text
- organizationalUnit :: Maybe Text
- country :: Maybe Text
- generationQualifier :: Maybe Text
- locality :: Maybe Text
- pseudonym :: Maybe Text
- initials :: Maybe Text
- title :: Maybe Text
- organization :: Maybe Text
- serialNumber :: Maybe Text
- surname :: Maybe Text
- distinguishedNameQualifier :: Maybe Text
- newASN1Subject :: ASN1Subject
- aSN1Subject_givenName :: Lens' ASN1Subject (Maybe Text)
- aSN1Subject_state :: Lens' ASN1Subject (Maybe Text)
- aSN1Subject_commonName :: Lens' ASN1Subject (Maybe Text)
- aSN1Subject_organizationalUnit :: Lens' ASN1Subject (Maybe Text)
- aSN1Subject_country :: Lens' ASN1Subject (Maybe Text)
- aSN1Subject_generationQualifier :: Lens' ASN1Subject (Maybe Text)
- aSN1Subject_locality :: Lens' ASN1Subject (Maybe Text)
- aSN1Subject_pseudonym :: Lens' ASN1Subject (Maybe Text)
- aSN1Subject_initials :: Lens' ASN1Subject (Maybe Text)
- aSN1Subject_title :: Lens' ASN1Subject (Maybe Text)
- aSN1Subject_organization :: Lens' ASN1Subject (Maybe Text)
- aSN1Subject_serialNumber :: Lens' ASN1Subject (Maybe Text)
- aSN1Subject_surname :: Lens' ASN1Subject (Maybe Text)
- aSN1Subject_distinguishedNameQualifier :: Lens' ASN1Subject (Maybe Text)
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.
ASN1Subject' | |
|
Instances
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_givenName :: Lens' ASN1Subject (Maybe Text) Source #
First name.
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.