1{
2    "$id": "http://redfish.dmtf.org/schemas/v1/CertificateService.v1_2_0.json",
3    "$ref": "#/definitions/CertificateService",
4    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5    "copyright": "Copyright 2014-2025 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
6    "definitions": {
7        "Actions": {
8            "additionalProperties": false,
9            "description": "The available actions for this resource.",
10            "longDescription": "This type shall contain the available actions for this resource.",
11            "patternProperties": {
12                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
13                    "description": "This property shall specify a valid odata or Redfish property.",
14                    "type": [
15                        "array",
16                        "boolean",
17                        "integer",
18                        "number",
19                        "null",
20                        "object",
21                        "string"
22                    ]
23                }
24            },
25            "properties": {
26                "#CertificateService.GenerateCSR": {
27                    "$ref": "#/definitions/GenerateCSR"
28                },
29                "#CertificateService.ReplaceCertificate": {
30                    "$ref": "#/definitions/ReplaceCertificate"
31                },
32                "Oem": {
33                    "$ref": "#/definitions/OemActions",
34                    "description": "The available OEM-specific actions for this resource.",
35                    "longDescription": "This property shall contain the available OEM-specific actions for this resource."
36                }
37            },
38            "type": "object"
39        },
40        "AutomaticCertificateEnrollment": {
41            "additionalProperties": false,
42            "description": "The automatic certificate enrollment service configuration.",
43            "longDescription": "This type shall contain the configuration and status of automatic certificate enrollment.",
44            "patternProperties": {
45                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
46                    "description": "This property shall specify a valid odata or Redfish property.",
47                    "type": [
48                        "array",
49                        "boolean",
50                        "integer",
51                        "number",
52                        "null",
53                        "object",
54                        "string"
55                    ]
56                }
57            },
58            "properties": {
59                "CertificatesSupported": {
60                    "description": "The certificate usage types that support automatic enrollments for this service.",
61                    "items": {
62                        "anyOf": [
63                            {
64                                "$ref": "http://redfish.dmtf.org/schemas/v1/Certificate.json#/definitions/CertificateUsageType"
65                            },
66                            {
67                                "type": "null"
68                            }
69                        ]
70                    },
71                    "longDescription": "This property shall contain an array of certificate usage types that support automatic enrollments for this service.",
72                    "readonly": true,
73                    "type": "array",
74                    "versionAdded": "v1_2_0"
75                },
76                "EnrollmentTypes": {
77                    "description": "The automatic enrollment protocols supported by this service.",
78                    "items": {
79                        "anyOf": [
80                            {
81                                "$ref": "http://redfish.dmtf.org/schemas/v1/CertificateEnrollment.json#/definitions/EnrollmentProtocolType"
82                            },
83                            {
84                                "type": "null"
85                            }
86                        ]
87                    },
88                    "longDescription": "This property shall contain an array of automatic enrollment protocols supported by this service.",
89                    "readonly": true,
90                    "type": "array",
91                    "versionAdded": "v1_2_0"
92                },
93                "ServiceEnabled": {
94                    "description": "An indication of whether automatic enrollment is enabled.",
95                    "longDescription": "This property shall indicate whether automatic certificate enrollment is enabled.",
96                    "readonly": false,
97                    "type": [
98                        "boolean",
99                        "null"
100                    ],
101                    "versionAdded": "v1_2_0"
102                }
103            },
104            "type": "object"
105        },
106        "CertificateService": {
107            "additionalProperties": false,
108            "description": "The `CertificateService` schema describes a certificate service that represents the actions available to manage certificates and links to the certificates.",
109            "longDescription": "This resource shall represent the certificate service properties for a Redfish implementation.",
110            "patternProperties": {
111                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
112                    "description": "This property shall specify a valid odata or Redfish property.",
113                    "type": [
114                        "array",
115                        "boolean",
116                        "integer",
117                        "number",
118                        "null",
119                        "object",
120                        "string"
121                    ]
122                }
123            },
124            "properties": {
125                "@odata.context": {
126                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
127                },
128                "@odata.etag": {
129                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
130                },
131                "@odata.id": {
132                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
133                },
134                "@odata.type": {
135                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
136                },
137                "Actions": {
138                    "$ref": "#/definitions/Actions",
139                    "description": "The available actions for this resource.",
140                    "longDescription": "This property shall contain the available actions for this resource."
141                },
142                "AutomaticCertificateEnrollment": {
143                    "anyOf": [
144                        {
145                            "$ref": "#/definitions/AutomaticCertificateEnrollment"
146                        },
147                        {
148                            "type": "null"
149                        }
150                    ],
151                    "description": "The automatic certificate enrollment configuration.",
152                    "longDescription": "This property shall contain the configuration and status of automatic certificate enrollment.",
153                    "versionAdded": "v1_2_0"
154                },
155                "CertificateEnrollments": {
156                    "anyOf": [
157                        {
158                            "$ref": "http://redfish.dmtf.org/schemas/v1/CertificateEnrollmentCollection.json#/definitions/CertificateEnrollmentCollection"
159                        },
160                        {
161                            "type": "null"
162                        }
163                    ],
164                    "description": "The link to the collection of certificate enrollment configurations.",
165                    "longDescription": "This property shall contain a link to a resource collection of type `CertificateEnrollmentCollection` that contains the certificate enrollment configurations for this service.",
166                    "readonly": true,
167                    "versionAdded": "v1_2_0"
168                },
169                "CertificateLocations": {
170                    "$ref": "http://redfish.dmtf.org/schemas/v1/CertificateLocations.json#/definitions/CertificateLocations",
171                    "description": "The information about the location of certificates.",
172                    "longDescription": "This property shall contain a link to a resource of type `CertificateLocations`.",
173                    "readonly": true
174                },
175                "Description": {
176                    "anyOf": [
177                        {
178                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
179                        },
180                        {
181                            "type": "null"
182                        }
183                    ],
184                    "readonly": true
185                },
186                "EnrollmentCACertificates": {
187                    "anyOf": [
188                        {
189                            "$ref": "http://redfish.dmtf.org/schemas/v1/CertificateCollection.json#/definitions/CertificateCollection"
190                        },
191                        {
192                            "type": "null"
193                        }
194                    ],
195                    "description": "The link to a collection of server certificates for the automatic certificate enrollment servers.",
196                    "longDescription": "This property shall contain a link to a resource collection of type `CertificateCollection` that contains the server certificates for the automatic certificate enrollment servers.",
197                    "readonly": true,
198                    "versionAdded": "v1_2_0"
199                },
200                "Id": {
201                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
202                    "readonly": true
203                },
204                "Name": {
205                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
206                    "readonly": true
207                },
208                "Oem": {
209                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
210                    "description": "The OEM extension property.",
211                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
212                }
213            },
214            "required": [
215                "@odata.id",
216                "@odata.type",
217                "Id",
218                "Name"
219            ],
220            "type": "object"
221        },
222        "GenerateCSR": {
223            "actionResponse": {
224                "$ref": "#/definitions/GenerateCSRResponse"
225            },
226            "additionalProperties": false,
227            "description": "This action makes a certificate signing request.",
228            "longDescription": "This action shall make a certificate signing request.  The response shall contain a signing request that a certificate authority (CA) will sign.  The service should retain the private key that was generated during this request for installation of the certificate.  The private key should not be part of the response.",
229            "parameters": {
230                "AlternativeNames": {
231                    "description": "The additional host names of the component to secure.",
232                    "items": {
233                        "type": "string"
234                    },
235                    "longDescription": "This parameter shall contain an array of additional host names of the component to secure, as defined by the RFC5280 'subjectAltName' attribute.",
236                    "type": "array"
237                },
238                "CertificateCollection": {
239                    "$ref": "http://redfish.dmtf.org/schemas/v1/CertificateCollection.json#/definitions/CertificateCollection",
240                    "description": "The link to the certificate collection where the certificate is installed after the certificate authority (CA) signs the certificate.",
241                    "longDescription": "This parameter shall contain a link to a resource collection of type `CertificateCollection` where the certificate is installed after the certificate authority (CA) signs the certificate.",
242                    "requiredParameter": true
243                },
244                "ChallengePassword": {
245                    "description": "The challenge password to apply to the certificate for revocation requests.",
246                    "longDescription": "This property shall contain the challenge password to apply to the certificate for revocation requests as defined by the RFC2985 'challengePassword' attribute.",
247                    "type": "string"
248                },
249                "City": {
250                    "description": "The city or locality of the organization making the request.",
251                    "longDescription": "This parameter shall contain the city or locality of the organization making the request, as defined by the RFC5280 'localityName' attribute.",
252                    "type": "string"
253                },
254                "CommonName": {
255                    "description": "The fully qualified domain name of the component to secure.",
256                    "longDescription": "This parameter shall contain the fully qualified domain name of the component to secure, as defined by the RFC5280 'commonName' attribute.",
257                    "requiredParameter": true,
258                    "type": "string"
259                },
260                "ContactPerson": {
261                    "description": "The name of the user making the request.",
262                    "longDescription": "This property shall contain the name of the user making the request, as defined by the RFC5280 'name' attribute.",
263                    "type": "string"
264                },
265                "Country": {
266                    "description": "The two-letter country code of the organization making the request.",
267                    "longDescription": "This parameter shall contain the two-letter ISO code for the country of the organization making the request, as defined by the RFC5280 'countryName' attribute.",
268                    "type": "string"
269                },
270                "Email": {
271                    "description": "The email address of the contact within the organization making the request.",
272                    "longDescription": "This parameter shall contain the email address of the contact within the organization making the request, as defined by the RFC2985 'emailAddress' attribute.",
273                    "type": "string"
274                },
275                "GivenName": {
276                    "description": "The given name of the user making the request.",
277                    "longDescription": "This parameter shall contain the given name of the user making the request, as defined by the RFC5280 'givenName' attribute.",
278                    "type": "string"
279                },
280                "Initials": {
281                    "description": "The initials of the user making the request.",
282                    "longDescription": "This parameter shall contain the initials of the user making the request, as defined by the RFC5280 'initials' attribute.",
283                    "type": "string"
284                },
285                "KeyBitLength": {
286                    "description": "The length of the key, in bits, if needed based on the `KeyPairAlgorithm` parameter value.",
287                    "longDescription": "This parameter shall contain the length of the key, in bits, if needed based on the `KeyPairAlgorithm` parameter value.",
288                    "type": "integer"
289                },
290                "KeyCurveId": {
291                    "description": "The curve ID to use with the key, if needed based on the `KeyPairAlgorithm` parameter value.",
292                    "longDescription": "This parameter shall contain the curve ID to use with the key, if needed based on the `KeyPairAlgorithm` parameter value.  The allowable values for this parameter shall be the strings in the 'Name' field of the 'TCG_ECC_CURVE Constants' table, formerly the 'TPM_ECC_CURVE Constants' table, within the 'Trusted Computing Group Algorithm Registry'.",
293                    "type": "string"
294                },
295                "KeyPairAlgorithm": {
296                    "description": "The type of key-pair for use with signing algorithms.",
297                    "longDescription": "This parameter shall contain the type of key-pair for use with signing algorithms.  The allowable values for this parameter shall be the strings in the 'Algorithm Name' field of the 'TCG_ALG_ID Constants' table, formerly the 'TPM_ALG_ID Constants' table, within the 'Trusted Computing Group Algorithm Registry'.",
298                    "type": "string"
299                },
300                "KeyUsage": {
301                    "description": "The usage of the key contained in the certificate.",
302                    "items": {
303                        "$ref": "http://redfish.dmtf.org/schemas/v1/Certificate.json#/definitions/KeyUsage"
304                    },
305                    "longDescription": "This parameter shall contain the usage of the key contained in the certificate.  If the client does not provide this value, the service can determine the appropriate key usage settings in the certificate signing request.",
306                    "type": "array"
307                },
308                "Organization": {
309                    "description": "The name of the organization making the request.",
310                    "longDescription": "This parameter shall contain the name of the organization making the request, as defined by the RFC5280 'organizationName' attribute.",
311                    "type": "string"
312                },
313                "OrganizationalUnit": {
314                    "description": "The name of the unit or division of the organization making the request.",
315                    "longDescription": "This parameter shall contain the name of the unit or division of the organization making the request, as defined by the RFC5280 'organizationalUnitName' attribute.",
316                    "type": "string"
317                },
318                "State": {
319                    "description": "The state, province, or region of the organization making the request.",
320                    "longDescription": "This parameter shall contain the state, province, or region of the organization making the request, as defined by the RFC5280 'stateOrProvinceName' attribute.",
321                    "type": "string"
322                },
323                "Surname": {
324                    "description": "The surname of the user making the request.",
325                    "longDescription": "This parameter shall contain the surname of the user making the request, as defined by the RFC5280 'surname' attribute.",
326                    "type": "string"
327                },
328                "UnstructuredName": {
329                    "description": "The unstructured name of the subject.",
330                    "longDescription": "This property shall contain the unstructured name of the subject, as defined by the RFC2985 'unstructuredName' attribute.",
331                    "type": "string"
332                }
333            },
334            "patternProperties": {
335                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
336                    "description": "This property shall specify a valid odata or Redfish property.",
337                    "type": [
338                        "array",
339                        "boolean",
340                        "integer",
341                        "number",
342                        "null",
343                        "object",
344                        "string"
345                    ]
346                }
347            },
348            "properties": {
349                "target": {
350                    "description": "Link to invoke action",
351                    "format": "uri-reference",
352                    "type": "string"
353                },
354                "title": {
355                    "description": "Friendly action name",
356                    "type": "string"
357                }
358            },
359            "type": "object"
360        },
361        "GenerateCSRResponse": {
362            "additionalProperties": false,
363            "description": "The response body for the `GenerateCSR` action.",
364            "longDescription": "This type shall contain the properties found in the response body for the `GenerateCSR` action.",
365            "patternProperties": {
366                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
367                    "description": "This property shall specify a valid odata or Redfish property.",
368                    "type": [
369                        "array",
370                        "boolean",
371                        "integer",
372                        "number",
373                        "null",
374                        "object",
375                        "string"
376                    ]
377                }
378            },
379            "properties": {
380                "CSRString": {
381                    "description": "The string for the certificate signing request.",
382                    "longDescription": "This property shall contain the Privacy Enhanced Mail (PEM)-encoded string, which contains RFC2986-specified structures, of the certificate signing request.  The private key should not be part of the string.",
383                    "readonly": true,
384                    "type": "string"
385                },
386                "CertificateCollection": {
387                    "$ref": "http://redfish.dmtf.org/schemas/v1/CertificateCollection.json#/definitions/CertificateCollection",
388                    "description": "The link to the certificate collection where the certificate is installed.",
389                    "longDescription": "This property shall contain a link to a resource collection of type `CertificateCollection` where the certificate is installed after the certificate authority (CA) has signed the certificate.",
390                    "readonly": true
391                }
392            },
393            "required": [
394                "CertificateCollection",
395                "CSRString"
396            ],
397            "type": "object"
398        },
399        "OemActions": {
400            "additionalProperties": true,
401            "description": "The available OEM-specific actions for this resource.",
402            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
403            "patternProperties": {
404                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
405                    "description": "This property shall specify a valid odata or Redfish property.",
406                    "type": [
407                        "array",
408                        "boolean",
409                        "integer",
410                        "number",
411                        "null",
412                        "object",
413                        "string"
414                    ]
415                }
416            },
417            "properties": {},
418            "type": "object"
419        },
420        "ReplaceCertificate": {
421            "additionalProperties": false,
422            "description": "This action replaces a certificate.",
423            "longDescription": "This action shall replace a certificate.  The `Location` header in the response shall contain the URI of the new certificate resource.",
424            "parameters": {
425                "CertificateString": {
426                    "description": "The string for the certificate.",
427                    "longDescription": "This parameter shall contain the string of the certificate, and the format shall follow the requirements specified by the `CertificateType` parameter value.  If the certificate contains any private keys, they shall be removed from the string in responses.  If the service does not know the private key for the certificate and it is needed to use the certificate, the client shall provide the private key as part of the string in the `POST` request.",
428                    "requiredParameter": true,
429                    "type": "string"
430                },
431                "CertificateType": {
432                    "$ref": "http://redfish.dmtf.org/schemas/v1/Certificate.json#/definitions/CertificateType",
433                    "description": "The format of the certificate.",
434                    "longDescription": "This parameter shall contain the format type for the certificate.",
435                    "requiredParameter": true
436                },
437                "CertificateUri": {
438                    "$ref": "http://redfish.dmtf.org/schemas/v1/Certificate.json#/definitions/Certificate",
439                    "description": "The link to the certificate that is being replaced.",
440                    "longDescription": "This parameter shall contain a link to a resource of type `Certificate` that is being replaced.",
441                    "requiredParameter": true
442                },
443                "Password": {
444                    "description": "The password for the certificate.",
445                    "longDescription": "This parameter shall contain the password for the certificate contained in the `CertificateString` parameter.  This parameter shall be required if the `CertificateType` parameter contains `PKCS12` and the client-provided certificate is password protected.",
446                    "type": "string",
447                    "versionAdded": "v1_1_0"
448                }
449            },
450            "patternProperties": {
451                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
452                    "description": "This property shall specify a valid odata or Redfish property.",
453                    "type": [
454                        "array",
455                        "boolean",
456                        "integer",
457                        "number",
458                        "null",
459                        "object",
460                        "string"
461                    ]
462                }
463            },
464            "properties": {
465                "target": {
466                    "description": "Link to invoke action",
467                    "format": "uri-reference",
468                    "type": "string"
469                },
470                "title": {
471                    "description": "Friendly action name",
472                    "type": "string"
473                }
474            },
475            "type": "object"
476        }
477    },
478    "language": "en",
479    "owningEntity": "DMTF",
480    "release": "2025.3",
481    "title": "#CertificateService.v1_2_0.CertificateService"
482}