Commit 65e37908 authored by Muhammad Hamza's avatar Muhammad Hamza
Browse files

alligned with NFVSOL(24)000403r7

parent 2c3e9e69
Loading
Loading
Loading
Loading
Loading
+7 −141
Original line number Diff line number Diff line
@@ -241,6 +241,12 @@ definitions:
              defined in IETF RFC 2986.
            $ref: "#/definitions/CSRMessage"

  CSRMessage:
    description: >
        Encoded Information for CSR Request. The structure and attributes are aligned
        and defined in IETF RFC 2986.
    type: object

  CertReqMessages:
    description: >
      This type represents a CertReqMessages.
@@ -664,143 +670,3 @@ definitions:
        type: array
        items:
          type: string
 No newline at end of file
          
  #############################################################
  ######################## TODOs ##############################

  CSRMessage:
    description: >
      TBD
  
  ###############################################################

  CertificationRequest:
    description: >
      The top-level Certification Request, which contains certification request information
      and its signature.
    type: object
    required:
      - certificationRequestInfo
      - signatureAlgorithm
      - signature
    properties:
      certificationRequestInfo:
        $ref: "#/definitions/CertificationRequestInfo"
      signatureAlgorithm:
        $ref: "#/definitions/AlgorithmIdentifier"
      signature:
        description: >
          The signature of the certification request, encoded as a bit string (base64).
        type: string
        format: byte

  CertificationRequestInfo:
    description: >
      Contains the information about the certification request, which is signed.
    type: object
    required:
      - version
      - subject
      - subjectPKInfo
    properties:
      version:
        description: > 
          The version number of the certification request. This field is intended for future updates to
          the certification request format. For this version of the specification (RFC 2986), the version
          is set to 0. If the format changes in future versions of the specification, this number may be
          incremented to indicate the new version of the certification request format.
        type: integer
        enum:
          - 0
      subject:
        $ref: "#/definitions/Name"
      subjectPKInfo:
        $ref: "#/definitions/SubjectPublicKeyInfo"
      attributes:
        type: array
        items:
          $ref: "#/definitions/Attribute"
        description: Optional attributes associated with the certification request.

  Name:
    type: object
    description: >
      Distinguished Name (DN) of the subject. This includes the attributes of the entity
      requesting the certificate.
    properties:
      commonName:
        type: string
        description: >
          Common Name of the subject.
      organization:
        type: string
        description: >
          Organization of the subject.
      organizationalUnit:
        type: string
        description: >
          Organizational Unit of the subject.
      country:
        type: string
        description: >
          Country of the subject.
      stateOrProvince:
        type: string
        description: >
          State or Province of the subject.
      locality:
        type: string
        description: >
          Locality of the subject.

  SubjectPublicKeyInfo:
    description: >
      Information about the subject's public key, including the algorithm and
      the public key itself.
    type: object
    required:
      - algorithm
      - subjectPublicKey
    properties:
      algorithm:
        $ref: "#/definitions/AlgorithmIdentifier"
      subjectPublicKey:
        description: >
          The public key in BIT STRING format, base64 encoded.
        type: string
        format: byte

  AlgorithmIdentifier:
    description: >
      Defines the algorithm used in the request (either for the public key or for the signature).
    type: object
    required:
      - algorithm
    properties:
      algorithm:
        type: string
        description: >
          The object identifier (OID) of the algorithm.
      parameters:
        description: >
          Optional parameters for the algorithm (e.g., for EC algorithms).
        type: string

  Attribute:
    description: >
      Represents a single attribute in the certification request.
    type: object
    required:
      - type
      - values
    properties:
      type:
        description: >
          The OID for the attribute type.
        type: string
      values:
        description: >
          The values associated with the attribute.
        type: array
        items:
          type: string
 No newline at end of file