{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/v2.7.0-rc3/schemas/certificate.json",
    "type": "object",
    "title": "TLS certificate detail",
    "additionalProperties": false,
    "required": [
        "subject",
        "issuer",
        "subjectAlternativeNames",
        "validTo",
        "expired",
        "selfSigned"
    ],
    "properties": {
        "subject": {
            "type": [
                "string",
                "null"
            ],
            "description": "Common name, null if the certificate does not contain the common name",
            "title": "Certificate subject",
            "example": "IQRF Gateway"
        },
        "issuer": {
            "type": [
                "string",
                "null"
            ],
            "description": "Common name, null if the certificate does not contain the common name",
            "title": "Certificate issuer",
            "example": "IQRF Gateway"
        },
        "subjectAlternativeNames": {
            "type": "array",
            "title": "Certificate subject alternative names",
            "example": [],
            "items": {
                "type": "string",
                "title": "Certificate subject alternative name",
                "example": ""
            }
        },
        "validTo": {
            "type": "string",
            "title": "Certificate is valid until",
            "format": "date-time",
            "example": "2030-04-09T20:47:51+00:00"
        },
        "expired": {
            "type": "boolean",
            "title": "Expired certificate",
            "example": false
        },
        "selfSigned": {
            "type": "boolean",
            "title": "Self-signed certificate",
            "example": true
        }
    }
}
