{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agilicus.com/www/api/certificate_export.schema.json",
  "title": "Certificate Export",
  "description": "A certificate for export",
  "type": "object",
  "properties": {
    "issuer": {
      "description": "the name of issuer which issued the certificate",
      "type": "string"
    },
    "org_id": {
      "description": "the Agilicus organisation GUID",
      "type": "string"
    },
    "connector_id": {
      "description": "the Agilicus connector GUID",
      "type": "string"
    },
    "certificate_id": {
      "description": "the Agilicus certificate GUID",
      "type": "string"
    },
    "certificate": {
      "description": "PEM encoded certificate",
      "type": "string"
    },
    "key": {
      "description": "PEM encoded private key",
      "type": "string"
    },
    "common_name": {
      "description": "the common name of the certificate being exported",
      "type": "string"
    },
    "pkcs12_b64": {
      "description": "pkcs12 base64 encoded file that combines the key and certificata, encrypted with a password",
      "type": "string"
    },
    "pkcs12_password": {
      "description": "the pkcs12 file password",
      "type": "string"
    },
    "x509_cert": {
      "description": "the Agilicus x509 certificate. See https://www.agilicus.com/api/#get-/v1/certificates",
      "type": "object"
    }
  }
}
