Module Values.ASN1SubjectSource

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.

Sourcetype nonrec t = {
  1. country : CountryCodeString.t option;
    (*

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

    *)
  2. organization : String64.t option;
    (*

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

    *)
  3. organizationalUnit : String64.t option;
    (*

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

    *)
  4. distinguishedNameQualifier : ASN1PrintableString64.t option;
    (*

    Disambiguating information for the certificate subject.

    *)
  5. state : String128.t option;
    (*

    State in which the subject of the certificate is located.

    *)
  6. commonName : String64.t option;
    (*

    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.

    *)
  7. serialNumber : ASN1PrintableString64.t option;
    (*

    The certificate serial number.

    *)
  8. locality : String128.t option;
    (*

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

    *)
  9. title : String64.t option;
    (*

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

    *)
  10. surname : String40.t option;
    (*

    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.

    *)
  11. givenName : String16.t option;
    (*

    First name.

    *)
  12. initials : String5.t option;
    (*

    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.

    *)
  13. pseudonym : String128.t option;
    (*

    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.

    *)
  14. generationQualifier : String3.t option;
    (*

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

    *)
  15. customAttributes : CustomAttributeList.t option;
    (*

    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). Custom attributes cannot be used in combination with standard attributes.

    *)
}
Sourceval make : ?country:??? -> ?organization:??? -> ?organizationalUnit:??? -> ?distinguishedNameQualifier:??? -> ?state:??? -> ?commonName:??? -> ?serialNumber:??? -> ?locality:??? -> ?title:??? -> ?surname:??? -> ?givenName:??? -> ?initials:??? -> ?pseudonym:??? -> ?generationQualifier:??? -> ?customAttributes:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of CustomObjectIdentifier.t ]) list ] list | `String of CountryCodeString.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t