{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CertificateMetadata",
  "title": "CertificateMetadata",
  "description": "Metadata extracted from a certificate.",
  "type": "object",
  "properties": {
    "issuer": {
      "description": "The issuer of the certificate.",
      "type": "string"
    },
    "subject": {
      "description": "The subject of the certificate.",
      "type": "string"
    },
    "key_usages": {
      "description": "The key usages of the certificate.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "expiry": {
      "description": "The expiry date of the certificate as a unix timestamp.",
      "type": "integer",
      "format": "int64"
    },
    "san_names": {
      "description": "The Subject Alternative Names (SAN) of the certificate.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dns_names": {
      "description": "The DNS names in the certificate SAN.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "email_addresses": {
      "description": "The email addresses in the certificate SAN.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ip_addresses": {
      "description": "The IP addresses in the certificate SAN.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "uris": {
      "description": "The URIs in the certificate SAN.",
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "sha256_fingerprint": {
      "description": "The SHA-256 fingerprint of the certificate.",
      "type": "string"
    }
  }
}