{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/CertificateSubjectDNCredential", "title": "CertificateSubjectDNCredential", "type": "object", "additionalProperties": false, "required": [ "credential_type" ], "properties": { "credential_type": { "$ref": "#/components/schemas/CertificateSubjectDNCredentialTypeEnum" }, "name": { "type": "string", "description": "Friendly name for a credential.", "default": "", "maxLength": 128 }, "subject_dn": { "type": "string", "description": "Subject Distinguished Name. Mutually exclusive with `pem` property. Applies to `cert_subject_dn` credential type.", "minLength": 1, "maxLength": 256 }, "pem": { "type": "string", "description": "PEM-formatted X509 certificate. Must be JSON escaped. Mutually exclusive with `subject_dn` property.", "default": "-----BEGIN CERTIFICATE-----\r\nMIIBIjANBg...\r\n-----END CERTIFICATE-----\r\n", "minLength": 1, "maxLength": 4096 } } }