Module Values.ExtensionsSource

Contains X.509 extension information for a certificate.

Sourcetype nonrec t = {
  1. certificatePolicies : CertificatePolicyList.t option;
    (*

    Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. For more information, see NIST's definition of Object Identifier (OID). In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.

    *)
  2. extendedKeyUsage : ExtendedKeyUsageList.t option;
    (*

    Specifies additional purposes for which the certified public key may be used other than basic purposes indicated in the KeyUsage extension.

    *)
  3. keyUsage : KeyUsage.t option;
  4. subjectAlternativeNames : GeneralNameList.t option;
    (*

    The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate.

    *)
  5. customExtensions : CustomExtensionList.t option;
    (*

    Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a base64-encoded value, and the critical flag. For more information, see the Global OID reference database.

    *)
}
Sourceval make : ?certificatePolicies:??? -> ?extendedKeyUsage:??? -> ?keyUsage:??? -> ?subjectAlternativeNames:??? -> ?customExtensions:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `Structure of (string * [> `String of String256.t ]) list ]) list ] list | `String of CustomObjectIdentifier.t | `Structure of (string * [> `List of [> `Structure of (string * [> `String of CustomObjectIdentifier.t ]) list ] list | `String of CustomObjectIdentifier.t ]) list ]) list ] list | `Structure of (string * [> `Boolean of Boolean.t ]) list ]) 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