{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-front-door/json-schema/microsoft-azure-front-door-custom-https-configuration-schema.json",
  "title": "CustomHttpsConfiguration",
  "description": "Https settings for a domain",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-front-door-frontdoors-api-openapi.yml#/components/schemas/CustomHttpsConfiguration",
  "type": "object",
  "properties": {
    "certificateSource": {
      "$ref": "#/$defs/FrontDoorCertificateSource",
      "description": "Defines the source of the SSL certificate"
    },
    "protocolType": {
      "$ref": "#/$defs/FrontDoorTlsProtocolType",
      "description": "Defines the TLS extension protocol that is used for secure delivery"
    },
    "minimumTlsVersion": {
      "$ref": "#/$defs/MinimumTLSVersion",
      "description": "The minimum TLS version required from the clients to establish an SSL handshake with Front Door."
    },
    "keyVaultCertificateSourceParameters": {
      "$ref": "#/$defs/KeyVaultCertificateSourceParameters",
      "description": "KeyVault certificate source parameters (if certificateSource=AzureKeyVault)",
      "x-ms-client-flatten": true
    },
    "frontDoorCertificateSourceParameters": {
      "$ref": "#/$defs/FrontDoorCertificateSourceParameters",
      "description": "Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor)",
      "x-ms-client-flatten": true
    }
  },
  "required": [
    "certificateSource",
    "protocolType",
    "minimumTlsVersion"
  ],
  "$defs": {
    "FrontDoorCertificateSource": {
      "type": "string",
      "description": "Defines the source of the SSL certificate",
      "enum": [
        "AzureKeyVault",
        "FrontDoor"
      ],
      "x-ms-enum": {
        "name": "FrontDoorCertificateSource",
        "modelAsString": true,
        "values": [
          {
            "name": "AzureKeyVault",
            "value": "AzureKeyVault",
            "description": "AzureKeyVault"
          },
          {
            "name": "FrontDoor",
            "value": "FrontDoor",
            "description": "FrontDoor"
          }
        ]
      }
    },
    "FrontDoorCertificateSourceParameters": {
      "type": "object",
      "description": "Parameters required for enabling SSL with Front Door-managed certificates",
      "properties": {
        "certificateType": {
          "$ref": "#/$defs/FrontDoorCertificateType",
          "description": "Defines the type of the certificate used for secure connections to a frontendEndpoint"
        }
      }
    },
    "FrontDoorCertificateType": {
      "type": "string",
      "description": "Defines the type of the certificate used for secure connections to a frontendEndpoint",
      "enum": [
        "Dedicated"
      ],
      "x-ms-enum": {
        "name": "FrontDoorCertificateType",
        "modelAsString": true,
        "values": [
          {
            "name": "Dedicated",
            "value": "Dedicated",
            "description": "Dedicated"
          }
        ]
      }
    },
    "FrontDoorTlsProtocolType": {
      "type": "string",
      "description": "Defines the TLS extension protocol that is used for secure delivery",
      "enum": [
        "ServerNameIndication"
      ],
      "x-ms-enum": {
        "name": "FrontDoorTlsProtocolType",
        "modelAsString": true,
        "values": [
          {
            "name": "ServerNameIndication",
            "value": "ServerNameIndication",
            "description": "ServerNameIndication"
          }
        ]
      }
    },
    "KeyVaultCertificateSourceParameters": {
      "type": "object",
      "description": "Parameters required for bring-your-own-certification via Key Vault",
      "properties": {
        "vault": {
          "$ref": "#/$defs/KeyVaultCertificateSourceParametersVault",
          "description": "The Key Vault containing the SSL certificate"
        },
        "secretName": {
          "type": "string",
          "description": "The name of the Key Vault secret representing the full certificate PFX"
        },
        "secretVersion": {
          "type": "string",
          "description": "The version of the Key Vault secret representing the full certificate PFX"
        }
      }
    },
    "KeyVaultCertificateSourceParametersVault": {
      "type": "object",
      "description": "The Key Vault containing the SSL certificate",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      }
    },
    "MinimumTLSVersion": {
      "type": "string",
      "description": "The minimum TLS version required from the clients to establish an SSL handshake with Front Door.",
      "enum": [
        "1.0",
        "1.2"
      ],
      "x-ms-enum": {
        "name": "MinimumTLSVersion",
        "modelAsString": true,
        "values": [
          {
            "name": "1.0",
            "value": "1.0",
            "description": "1.0"
          },
          {
            "name": "1.2",
            "value": "1.2",
            "description": "1.2"
          }
        ]
      }
    }
  }
}