NOTE: Privileges required to replace certificate varies depending on the type of the certificate, following is a list of required privileges:
| Certificate Type | Privilege Required |
|---|---|
| HTTP boot Certificate | Login, System Control |
| AD/LDAP Cert | Login, ConfigureIdrac, ConfigureUsers |
| Webserver SSL | Login, ConfigureManager |
X-Auth-Token: ********************username:passwordAuthorization: Basic *****************curl --location '/redfish/v1/CertificateService/Actions/CertificateService.ReplaceCertificate' \
--header 'X-Auth-Token: <api-key>' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
"CertificateString": "PEM FORMATTED CERTIFICATE",
"CertificateType": "PEM",
"CertificateUri": {
"@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/NetworkProtocol/Oem/Dell/PNAC/ClientCertificates/{CertificateId}"
}
}'{
"error": {
"@Message.ExtendedInfo": [
{}
],
"code": "string",
"message": "string"
}
}