POST – 更新
使用 POST 方法根据证书的现有信息和密钥对来生成证书签名请求。
请求 URL
GET https://<BMC_IPADDR>/redfish/v1/Managers/1/NetworkProtocol/HTTPS/Certificates/{id}/Actions/Certificate.Renew
请求正文
无
响应正文
字段 | 类型 | 描述 |
---|---|---|
CSRString | 字符串 | 证书签名请求字符串。 |
Certificate | 链接 | 要重新生成密钥的证书的链接。 |
状态代码
HTTP 状态代码 | 错误消息 ID |
---|---|
400 | BadRequest |
500 | InternalError |
示例
以下示例是 POST 正文
无
返回以下示例 JSON 响应:
{
"Certificate": {
"@odata.id": "/redfish/v1/Managers/1/NetworkProtocol/HTTPS/Certificates/1"
},
"CSRString": "-----BEGIN CERTIFICATE REQUEST-----\nMIICpDCCAioCAQAwTzELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAk5DMQwwCgYDVQQHDANSVFAxDzANBgNVBAoMBkxlbm92bzEUMBIGA1UEAwwLWENDLTdaNjAtU04wdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQKEnDzQP2ngvTEfY/vMHSlVvRf/i6Gja1x+DryAeGze7FjAXXJvP9aBdspJzEfOzk3/a7W3W+VpW3/YfvOjferwGL9ISdZ1A/S7aLAraaaf+1Cw5zX0qTUX16Gdbkpz+GgggFaMIIBVgYJKoZIhvcNAQkOMYIBRzCCAUMwCQYDVR0TBAIwADALBgNVHQ8EBAMCBeAwggEnBgNVHREEggEeMIIBGoILWENDLTdaNjAtU06CC1hDQy03WjYwLVNOhxD+gAAAAAAAAAqU7//+r06fgilmZTgwLS1hOTQtZWZmZi1mZWFmLTRlOWYuaXB2Ni1saXRlcmFsLm5ldIcQ/oAAAAAAAAAKlO///q9OoIIpZmU4MC0tYTk0LWVmZmYtZmVhZi00ZWEwLmlwdjYtbGl0ZXJhbC5uZXSHBKn+X3aHEP6AAAAAAAAACpTv//6rmbOCKWZlODAtLWE5NC1lZmZmLWZlYWItOTliMy5pcHY2LWxpdGVyYWwubmV0hwQKaMVIhxD+gAAAAAAAAAqU7//+q5m0gilmZTgwLS1hOTQtZWZmZi1mZWFiLTk5YjQuaXB2Ni1saXRlcmFsLm5ldDAKBggqhkjOPQQDAgNoADBlAjA7v/r0LljB0M4GAajGtrS2yMR/Np8T5evlA5JmXYVIGmcklN7uETz+aokC0G3poSwCMQCybhvJ0ZmuFQjarW8brInM231OcjWN5bgZyKFAfmcHkZNvkCau8DB3vI5z309KDeQ=\n-----END CERTIFICATE REQUEST-----"
}