1{
2    "$id": "http://redfish.dmtf.org/schemas/v1/CertificateService.v1_0_5.json",
3    "$ref": "#/definitions/CertificateService",
4    "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
5    "copyright": "Copyright 2014-2024 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        "CertificateService": {
41            "additionalProperties": false,
42            "description": "The `CertificateService` schema describes a certificate service that represents the actions available to manage certificates and links to the certificates.",
43            "longDescription": "This resource shall represent the certificate service properties for a Redfish implementation.",
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                "@odata.context": {
60                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context"
61                },
62                "@odata.etag": {
63                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag"
64                },
65                "@odata.id": {
66                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id"
67                },
68                "@odata.type": {
69                    "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type"
70                },
71                "Actions": {
72                    "$ref": "#/definitions/Actions",
73                    "description": "The available actions for this resource.",
74                    "longDescription": "This property shall contain the available actions for this resource."
75                },
76                "CertificateLocations": {
77                    "$ref": "http://redfish.dmtf.org/schemas/v1/CertificateLocations.json#/definitions/CertificateLocations",
78                    "description": "The information about the location of certificates.",
79                    "longDescription": "This property shall contain a link to a resource of type `CertificateLocations`.",
80                    "readonly": true
81                },
82                "Description": {
83                    "anyOf": [
84                        {
85                            "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Description"
86                        },
87                        {
88                            "type": "null"
89                        }
90                    ],
91                    "readonly": true
92                },
93                "Id": {
94                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Id",
95                    "readonly": true
96                },
97                "Name": {
98                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Name",
99                    "readonly": true
100                },
101                "Oem": {
102                    "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem",
103                    "description": "The OEM extension property.",
104                    "longDescription": "This property shall contain the OEM extensions.  All values for properties that this object contains shall conform to the Redfish Specification-described requirements."
105                }
106            },
107            "required": [
108                "@odata.id",
109                "@odata.type",
110                "Id",
111                "Name"
112            ],
113            "type": "object"
114        },
115        "GenerateCSR": {
116            "actionResponse": {
117                "$ref": "#/definitions/GenerateCSRResponse"
118            },
119            "additionalProperties": false,
120            "description": "This action makes a certificate signing request.",
121            "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.",
122            "parameters": {
123                "AlternativeNames": {
124                    "description": "The additional host names of the component to secure.",
125                    "items": {
126                        "type": "string"
127                    },
128                    "longDescription": "This parameter shall contain an array of additional host names of the component to secure, as defined by the RFC5280 'subjectAltName' attribute.",
129                    "type": "array"
130                },
131                "CertificateCollection": {
132                    "$ref": "http://redfish.dmtf.org/schemas/v1/CertificateCollection.json#/definitions/CertificateCollection",
133                    "description": "The link to the certificate collection where the certificate is installed after the certificate authority (CA) signs the certificate.",
134                    "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.",
135                    "requiredParameter": true
136                },
137                "ChallengePassword": {
138                    "description": "The challenge password to apply to the certificate for revocation requests.",
139                    "longDescription": "This property shall contain the challenge password to apply to the certificate for revocation requests as defined by the RFC2985 'challengePassword' attribute.",
140                    "type": "string"
141                },
142                "City": {
143                    "description": "The city or locality of the organization making the request.",
144                    "longDescription": "This parameter shall contain the city or locality of the organization making the request, as defined by the RFC5280 'localityName' attribute.",
145                    "requiredParameter": true,
146                    "type": "string"
147                },
148                "CommonName": {
149                    "description": "The fully qualified domain name of the component to secure.",
150                    "longDescription": "This parameter shall contain the fully qualified domain name of the component to secure, as defined by the RFC5280 'commonName' attribute.",
151                    "requiredParameter": true,
152                    "type": "string"
153                },
154                "ContactPerson": {
155                    "description": "The name of the user making the request.",
156                    "longDescription": "This property shall contain the name of the user making the request, as defined by the RFC5280 'name' attribute.",
157                    "type": "string"
158                },
159                "Country": {
160                    "description": "The two-letter country code of the organization making the request.",
161                    "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.",
162                    "requiredParameter": true,
163                    "type": "string"
164                },
165                "Email": {
166                    "description": "The email address of the contact within the organization making the request.",
167                    "longDescription": "This parameter shall contain the email address of the contact within the organization making the request, as defined by the RFC2985 'emailAddress' attribute.",
168                    "type": "string"
169                },
170                "GivenName": {
171                    "description": "The given name of the user making the request.",
172                    "longDescription": "This parameter shall contain the given name of the user making the request, as defined by the RFC5280 'givenName' attribute.",
173                    "type": "string"
174                },
175                "Initials": {
176                    "description": "The initials of the user making the request.",
177                    "longDescription": "This parameter shall contain the initials of the user making the request, as defined by the RFC5280 'initials' attribute.",
178                    "type": "string"
179                },
180                "KeyBitLength": {
181                    "description": "The length of the key, in bits, if needed based on the `KeyPairAlgorithm` parameter value.",
182                    "longDescription": "This parameter shall contain the length of the key, in bits, if needed based on the `KeyPairAlgorithm` parameter value.",
183                    "type": "integer"
184                },
185                "KeyCurveId": {
186                    "description": "The curve ID to use with the key, if needed based on the `KeyPairAlgorithm` parameter value.",
187                    "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 'TPM_ECC_CURVE Constants' table within the 'Trusted Computing Group Algorithm Registry'.",
188                    "type": "string"
189                },
190                "KeyPairAlgorithm": {
191                    "description": "The type of key-pair for use with signing algorithms.",
192                    "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 'TPM_ALG_ID Constants' table within the 'Trusted Computing Group Algorithm Registry'.",
193                    "type": "string"
194                },
195                "KeyUsage": {
196                    "description": "The usage of the key contained in the certificate.",
197                    "items": {
198                        "$ref": "http://redfish.dmtf.org/schemas/v1/Certificate.json#/definitions/KeyUsage"
199                    },
200                    "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.",
201                    "type": "array"
202                },
203                "Organization": {
204                    "description": "The name of the organization making the request.",
205                    "longDescription": "This parameter shall contain the name of the organization making the request, as defined by the RFC5280 'organizationName' attribute.",
206                    "requiredParameter": true,
207                    "type": "string"
208                },
209                "OrganizationalUnit": {
210                    "description": "The name of the unit or division of the organization making the request.",
211                    "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.",
212                    "requiredParameter": true,
213                    "type": "string"
214                },
215                "State": {
216                    "description": "The state, province, or region of the organization making the request.",
217                    "longDescription": "This parameter shall contain the state, province, or region of the organization making the request, as defined by the RFC5280 'stateOrProvinceName' attribute.",
218                    "requiredParameter": true,
219                    "type": "string"
220                },
221                "Surname": {
222                    "description": "The surname of the user making the request.",
223                    "longDescription": "This parameter shall contain the surname of the user making the request, as defined by the RFC5280 'surname' attribute.",
224                    "type": "string"
225                },
226                "UnstructuredName": {
227                    "description": "The unstructured name of the subject.",
228                    "longDescription": "This property shall contain the unstructured name of the subject, as defined by the RFC2985 'unstructuredName' attribute.",
229                    "type": "string"
230                }
231            },
232            "patternProperties": {
233                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
234                    "description": "This property shall specify a valid odata or Redfish property.",
235                    "type": [
236                        "array",
237                        "boolean",
238                        "integer",
239                        "number",
240                        "null",
241                        "object",
242                        "string"
243                    ]
244                }
245            },
246            "properties": {
247                "target": {
248                    "description": "Link to invoke action",
249                    "format": "uri-reference",
250                    "type": "string"
251                },
252                "title": {
253                    "description": "Friendly action name",
254                    "type": "string"
255                }
256            },
257            "type": "object"
258        },
259        "GenerateCSRResponse": {
260            "additionalProperties": false,
261            "description": "The response body for the `GenerateCSR` action.",
262            "longDescription": "This type shall contain the properties found in the response body for the `GenerateCSR` action.",
263            "patternProperties": {
264                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
265                    "description": "This property shall specify a valid odata or Redfish property.",
266                    "type": [
267                        "array",
268                        "boolean",
269                        "integer",
270                        "number",
271                        "null",
272                        "object",
273                        "string"
274                    ]
275                }
276            },
277            "properties": {
278                "CSRString": {
279                    "description": "The string for the certificate signing request.",
280                    "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.",
281                    "readonly": true,
282                    "type": "string"
283                },
284                "CertificateCollection": {
285                    "$ref": "http://redfish.dmtf.org/schemas/v1/CertificateCollection.json#/definitions/CertificateCollection",
286                    "description": "The link to the certificate collection where the certificate is installed.",
287                    "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.",
288                    "readonly": true
289                }
290            },
291            "required": [
292                "CertificateCollection",
293                "CSRString"
294            ],
295            "type": "object"
296        },
297        "OemActions": {
298            "additionalProperties": true,
299            "description": "The available OEM-specific actions for this resource.",
300            "longDescription": "This type shall contain the available OEM-specific actions for this resource.",
301            "patternProperties": {
302                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
303                    "description": "This property shall specify a valid odata or Redfish property.",
304                    "type": [
305                        "array",
306                        "boolean",
307                        "integer",
308                        "number",
309                        "null",
310                        "object",
311                        "string"
312                    ]
313                }
314            },
315            "properties": {},
316            "type": "object"
317        },
318        "ReplaceCertificate": {
319            "additionalProperties": false,
320            "description": "This action replaces a certificate.",
321            "longDescription": "This action shall replace a certificate.  The `Location` header in the response shall contain the URI of the new certificate resource.",
322            "parameters": {
323                "CertificateString": {
324                    "description": "The string for the certificate.",
325                    "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.",
326                    "requiredParameter": true,
327                    "type": "string"
328                },
329                "CertificateType": {
330                    "$ref": "http://redfish.dmtf.org/schemas/v1/Certificate.json#/definitions/CertificateType",
331                    "description": "The format of the certificate.",
332                    "longDescription": "This parameter shall contain the format type for the certificate.",
333                    "requiredParameter": true
334                },
335                "CertificateUri": {
336                    "$ref": "http://redfish.dmtf.org/schemas/v1/Certificate.json#/definitions/Certificate",
337                    "description": "The link to the certificate that is being replaced.",
338                    "longDescription": "This parameter shall contain a link to a resource of type `Certificate` that is being replaced.",
339                    "requiredParameter": true
340                }
341            },
342            "patternProperties": {
343                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
344                    "description": "This property shall specify a valid odata or Redfish property.",
345                    "type": [
346                        "array",
347                        "boolean",
348                        "integer",
349                        "number",
350                        "null",
351                        "object",
352                        "string"
353                    ]
354                }
355            },
356            "properties": {
357                "target": {
358                    "description": "Link to invoke action",
359                    "format": "uri-reference",
360                    "type": "string"
361                },
362                "title": {
363                    "description": "Friendly action name",
364                    "type": "string"
365                }
366            },
367            "type": "object"
368        }
369    },
370    "language": "en",
371    "owningEntity": "DMTF",
372    "release": "2018.3",
373    "title": "#CertificateService.v1_0_5.CertificateService"
374}