Subject

Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate.

JSON representation
{
  "commonName": string,
  "countryCode": string,
  "organization": string,
  "organizationalUnit": string,
  "locality": string,
  "province": string,
  "streetAddress": string,
  "postalCode": string,
  "rdnSequence": [
    {
      object (RelativeDistinguishedName)
    }
  ]
}
Fields
commonName

string

The "common name" of the subject.

countryCode

string

The country code of the subject.

organization

string

The organization of the subject.

organizationalUnit

string

The organizationalUnit of the subject.

locality

string

The locality or city of the subject.

province

string

The province, territory, or regional state of the subject.

streetAddress

string

The street address of the subject.

postalCode

string

The postal code of the subject.

rdnSequence[]

object (RelativeDistinguishedName)

This field can be used in place of the named subject fields.

RelativeDistinguishedName

RelativeDistinguishedName specifies a relative distinguished name which will be used to build a distinguished name.

JSON representation
{
  "attributes": [
    {
      object (AttributeTypeAndValue)
    }
  ]
}
Fields
attributes[]

object (AttributeTypeAndValue)

Attributes describes the attribute value assertions in the RDN.

AttributeTypeAndValue

AttributeTypeAndValue specifies an attribute type and value. It can use either a OID or enum value to specify the attribute type.

JSON representation
{
  "value": string,

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "type": enum (AttributeType),
  "objectId": {
    object (ObjectId)
  }
  // End of mutually exclusive fields.
}
Fields
value

string

The value for the attribute type.

The attribute type for the attribute and value pair. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
type

enum (AttributeType)

The attribute type of the attribute and value pair.

objectId

object (ObjectId)

Object ID for an attribute type of an attribute and value pair.

End of mutually exclusive fields.

AttributeType

AttributeType specifies the type of Attribute in a relative distinguished name.

Enums
ATTRIBUTE_TYPE_UNSPECIFIED Attribute type is unspecified.
COMMON_NAME The "common name" of the subject.
COUNTRY_CODE The country code of the subject.
ORGANIZATION The organization of the subject.
ORGANIZATIONAL_UNIT The organizational unit of the subject.
LOCALITY The locality or city of the subject.
PROVINCE The province, territory, or regional state of the subject.
STREET_ADDRESS The street address of the subject.
POSTAL_CODE The postal code of the subject.