{"oneOf": [{"not": {"anyOf": [{"required": ["key-size"]}, {"required": ["validity-duration"]}]}, "required": ["cert", "key"]}, {"not": {"anyOf": [{"required": ["cert"]}, {"required": ["key"]}]}, "anyOf": [{"required": ["key-size"]}, {"required": ["validity-duration"]}]}], "type": "object", "properties": {"key": {"type": "string"}, "cert": {"type": "string"}, "key-size": {"type": "integer"}, "validity-duration": {"type": "string"}}}