Class CfnCertificate.SubjectProperty
Contains information about the certificate subject.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ACMPCA
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SubjectProperty : Object, CfnCertificate.ISubjectProperty
Syntax (vb)
Public Class SubjectProperty
Inherits Object
Implements CfnCertificate.ISubjectProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ACMPCA;
var subjectProperty = new SubjectProperty {
CommonName = "commonName",
Country = "country",
CustomAttributes = new [] { new CustomAttributeProperty {
ObjectIdentifier = "objectIdentifier",
Value = "value"
} },
DistinguishedNameQualifier = "distinguishedNameQualifier",
GenerationQualifier = "generationQualifier",
GivenName = "givenName",
Initials = "initials",
Locality = "locality",
Organization = "organization",
OrganizationalUnit = "organizationalUnit",
Pseudonym = "pseudonym",
SerialNumber = "serialNumber",
State = "state",
Surname = "surname",
Title = "title"
};
Synopsis
Constructors
SubjectProperty() |
Properties
CommonName | For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit. |
Country | Two-digit code that specifies the country in which the certificate subject located. |
CustomAttributes | Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID) . |
DistinguishedNameQualifier | Disambiguating information for the certificate subject. |
GenerationQualifier | Typically a qualifier appended to the name of an individual. |
GivenName | First name. |
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 . |
Locality | The locality (such as a city or town) in which the certificate subject is located. |
Organization | Legal name of the organization with which the certificate subject is affiliated. |
OrganizationalUnit | A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated. |
Pseudonym | Typically a shortened version of a longer GivenName . |
SerialNumber | The certificate serial number. |
State | State in which the subject of the certificate is located. |
Surname | Family name. |
Title | A title such as Mr. |
Constructors
SubjectProperty()
public SubjectProperty()
Properties
CommonName
For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length limit.
public string CommonName { get; set; }
Property Value
System.String
Remarks
Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated with the certificate subject.
Country
Two-digit code that specifies the country in which the certificate subject located.
public string Country { get; set; }
Property Value
System.String
Remarks
CustomAttributes
Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID) .
public object CustomAttributes { get; set; }
Property Value
System.Object
Remarks
Custom attributes cannot be used in combination with standard attributes.
DistinguishedNameQualifier
Disambiguating information for the certificate subject.
public string DistinguishedNameQualifier { get; set; }
Property Value
System.String
Remarks
GenerationQualifier
Typically a qualifier appended to the name of an individual.
public string GenerationQualifier { get; set; }
Property Value
System.String
Remarks
Examples include Jr. for junior, Sr. for senior, and III for third.
GivenName
First name.
public string GivenName { get; set; }
Property Value
System.String
Remarks
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 .
public string Initials { get; set; }
Property Value
System.String
Remarks
Locality
The locality (such as a city or town) in which the certificate subject is located.
public string Locality { get; set; }
Property Value
System.String
Remarks
Organization
Legal name of the organization with which the certificate subject is affiliated.
public string Organization { get; set; }
Property Value
System.String
Remarks
OrganizationalUnit
A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
public string OrganizationalUnit { get; set; }
Property Value
System.String
Remarks
Pseudonym
Typically a shortened version of a longer GivenName .
public string Pseudonym { get; set; }
Property Value
System.String
Remarks
For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.
SerialNumber
The certificate serial number.
public string SerialNumber { get; set; }
Property Value
System.String
Remarks
State
State in which the subject of the certificate is located.
public string State { get; set; }
Property Value
System.String
Remarks
Surname
Family name.
public string Surname { get; set; }
Property Value
System.String
Remarks
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.
Title
A title such as Mr.
public string Title { get; set; }
Property Value
System.String
Remarks
or Ms., which is pre-pended to the name to refer formally to the certificate subject.