POST /serverCertificate/tmp
Use this method to uploads a new signed server certificate to Lenovo XClarity Administrator and provisions the new certificate to all managed devices.
When a self-signed certificate is generated and, a job is created to provision the new certificate to all managed devices. Use the GET /serverCertificate/jobs/{job_id} method to retrieve the job status and additional job details. If a job was not successfully started, refer to the response code and response body for details.
Authentication
Authentication with username and password is required.
Request URL
POST https://{management_server_IP}/serverCertificate/tmp
Query parameters
None
Request body
Parameters | Required / Optional | Type | Description |
---|---|---|---|
action | Optional | String | Action to take. This can be one of the following values.
|
{server_certificate} | Required | String | Server certificate in PEM forma The certificate to be uploaded must have been created from the certificate signing request using the GET /certificateSigningRequest or downloaded from the XClarity Administrator user interface. |
-----------------------------269032580128512 Content-Disposition
: form-data; name="uploadedfile"; filename="cert_chain.pem" Cont
ent-Type: application/octet-stream -----BEGIN CERTIFICATE-----
MIIF8TCCA9mgAwIBAgIJAPCc80vvkTPlMA0GCSqGSIb3DQEBBQUAMIGOMQswCQYD
VQQGEwJVUzESMBAGA1UECAwJTWlubmVzb3RhMRIwEAYDVQQHDAlSb2NoZXN0ZXIx
EzARBgNVBAoMCnhITUMgTWFrZXIxCzAJBgNVBAsMAklTMRAwDgYDVQQDDAdUZXN0
IENBMSMwIQYJKoZIhvcNAQkBFhRwa2lhZG1pbkBleGFtcGxlLmNvbTAeFw0xNTAz
MDIyMDEwMDNaFw0yNTAyMjcyMDEwMDNaMIGOMQswCQYDVQQGEwJVUzESMBAGA1UE
CAwJTWlubmVzb3RhMRIwEAYDVQQHDAlSb2NoZXN0ZXIxEzARBgNVBAoMCnhITUMg
TWFrZXIxCzAJBgNVBAsMAklTMRAwDgYDVQQDDAdUZXN0IENBMSMwIQYJKoZIhvcN
AQkBFhRwa2lhZG1pbkBleGFtcGxlLmNvbTCCAiIwDQYJKoZIhvcNAQEBBQADggIP
ADCCAgoCggIBAMjv1twLYnr2r4lcXOMtIhHRmCjx5x9IPsm8yma028MgwHRaxDUE
Peu2NuCJobHg1kcLyIHNPZriWXY2D4tZsYstG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T1x0uCAX
...certificate contents here ...
vdLkS4Bw+vmMYbR6MSA9HqToDc0l2TbAjttGImlg7K7HFHybIp4QnofrdYJ7fbwV
bmoKLOQL60wX0efqp7r6eKIP+uYNVEYr4gXvYUn+PPqZaViRTrhIuWUQydQApeI7
RAaypfTGvUy8f3ezpR8+JHr+Yp4AbQeLmqJU7LgCI6fbGdVK8fwlYNs0YbCmyrcq
EKMlRjc15pBp7ZGm/zxErn9c+CK6c+s= -----END CERTIFICATE----- -----
BEGIN CERTIFICATE----- MIIFyDCCA7CgAwIBAgICEAIwDQYJKoZIhvcNAQEFB
QAwgYcxCzAJBgNVBAYTAlVT MRIwEAYDVQQIDAlNaW5uZXNvdGExEzARBgNVBAoM
CnhITUMgTWFrZXIxCzAJBgNV BAsMAklTMR0wGwYDVQQDDBRUZXN0IEludGVybWV
kaWF0ZSBDQTEjMCEGCSqGSIb3 DQEJARYUcGtpYWRtaW5AZXhhbXBsZS5jb20wHh
cNMTAwMTAxMTIwMDAwWhcNMjUw MjI3MjEwMzI1WjB5MQswCQYDVQQGEwJVUzESM
BAGA1UECBMJTWlubmVzb3RhMRIw EAYDVQQHEwlSb2NoZXN0ZXIxJTAjBgNVBAoT
HEdlbmVyYXRlZCBieSBTZXJ2ZXIg RmlybXdhcmUxCzAJBgNVBAsTAk9VMQ4wDAY
DVQQDEwVMWENBMjCCASIwDQYJKoZI hvcNAQEBBQADggEPADCCAQoCggEBALoiw8
KeONj2+8xNrXlUs1CK5h7uAksVf1d4 +34UqdVOVeM89NjG6I4g9s8+c46ugRxXC
AnsLDWAdHqNcMz+VAc7Avn68BqwWkMF mzboe7sgb0BK5ALEBruH+sashz84m/DX
NDCqXSg8FndU45z90pRsTAHCSC9i4Dt0 AMo6vgB3Mq90/IyfrZcd+IhPZIh0Tw0
brPssNXHJ0INRwLQ7orUOaeoi3hggkobX LmPm6pmMqVFeSvpaGKVOXPSANvE68D
f3SZv9U9aAzg6jlehwn+CqzYmXkoIHWRIh S0jvsV2SqA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3lY3Lr88u9+8Q5f1NlQpqc5wDaiw qoX92ToEHWdz
+z7V6NhlXlhASOPmBWPPmQg+yOoeYmKl0w71AEk1R6dYSzZoxr9b 5H4ITTC3kQZ
Qn4vR9+QWvVzQSMZ7xubiSo3DrahV81pYWXcSsYVJ+3C53vM= ---
--END CERTIFICATE----- -----------------------------269032580128
512--
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
400 | Bad Request | A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body. |
409 | Conflict | There is a conflict with the current state of the resource. A descriptive error message is returned in the response body. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response body
Attributes | Type | Description | ||
---|---|---|---|---|
response | Object | Response content. This attribute is provided only if the CA that is specified in the certification chain is new and returnJobInfo="true" is specified in the request. | ||
jobPath | String | A URI in the form /serverCertificate/jobs/{job_id} (for example, /serverCertificate/jobs/383) that represents the job that is monitored by the management server. You can use GET /serverCertificate/jobs/{job_id} to determine the status of the job. If a job was not successfully started, refer to the response code and response body for details. This is the same URI that is included in the response header. If no job was created, this attribute is empty. | ||
result | String | The results of the request. This can be one of the following values.
| ||
messages | Array | Information about one or more messages. | ||
explanation | String | Additional information to clarify the reason for the message. | ||
id | String | The message identifier of a returned message. | ||
recovery | Array | Recovery information | ||
text | String | User actions that can be taken to recover from the event. | ||
URL | String | Link to the help system for more information, if available. | ||
text | String | Message text associated with the message identifier. |
{
"response": {
"jobPath": "/serverCertificate/jobs/383"
},
"result": "success",
"messages": [{
"explanation": "The existing server certificate has been replaced by the new certificate",
"id": "FQXHMSE0134I",
"recovery": {
"text": "Information only; no action is required.",
"URL": ""
},
"text": "The request to upload new server certificate was successful.",
}]
}