{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whoisfreaks/json-schema/whoisfreaks-ssl-response-schema.json",
  "title": "SslResponse",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whoisfreaks-ssl-api-openapi.yml#/components/schemas/SslResponse",
  "type": "object",
  "properties": {
    "domainName": {
      "type": "string"
    },
    "queryTime": {
      "type": "string"
    },
    "sslCertificates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SslCertificate"
      }
    },
    "sslRaw": {
      "type": "string"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "SslAlternateNames": {
      "type": "object",
      "properties": {
        "dnsNames": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "emailAddresses": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "ipAddresses": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "uris": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": true
    },
    "SslAuthorityInfo": {
      "type": "object",
      "properties": {
        "issuers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "ocsp": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": true
    },
    "SslCertificate": {
      "type": "object",
      "properties": {
        "chainOrder": {
          "type": "string"
        },
        "authenticationType": {
          "type": "string"
        },
        "validityStartDate": {
          "type": "string"
        },
        "validityEndDate": {
          "type": "string"
        },
        "serialNumber": {
          "type": "string"
        },
        "signatureAlgorithm": {
          "type": "string"
        },
        "subject": {
          "$ref": "#/$defs/SslUnitInfo"
        },
        "issuer": {
          "$ref": "#/$defs/SslUnitInfo"
        },
        "publicKey": {
          "$ref": "#/$defs/SslPublicKeyInfo"
        },
        "extensions": {
          "$ref": "#/$defs/SslExtensionsInfo"
        },
        "pemRaw": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "SslCertificatePolicy": {
      "type": "object",
      "properties": {
        "policyId": {
          "type": "string"
        },
        "policyQualifier": {
          "type": "object"
        }
      },
      "additionalProperties": true
    },
    "SslExtensionsInfo": {
      "type": "object",
      "properties": {
        "authorityKeyIdentifier": {
          "type": "string"
        },
        "subjectKeyIdentifier": {
          "type": "string"
        },
        "keyUsages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "extendedKeyUsages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "crlDistributionPoints": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "authorityInfoAccess": {
          "$ref": "#/$defs/SslAuthorityInfo"
        },
        "subjectAlternativeNames": {
          "$ref": "#/$defs/SslAlternateNames"
        },
        "certificatePolicies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SslCertificatePolicy"
          }
        }
      },
      "additionalProperties": true
    },
    "SslPublicKeyInfo": {
      "type": "object",
      "properties": {
        "keySize": {
          "type": "string"
        },
        "keyAlgorithm": {
          "type": "string"
        },
        "pemRaw": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "SslUnitInfo": {
      "type": "object",
      "properties": {
        "commonName": {
          "type": "string"
        },
        "organization": {
          "type": "string"
        },
        "organizationalUnit": {
          "type": "string"
        },
        "locality": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "incCountry": {
          "type": "string"
        },
        "incState": {
          "type": "string"
        },
        "businessCategory": {
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "serialNumber": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  }
}