HTTPSCertificate
更新时间: 2026/07/01
在Gitcode上查看源码ResourceDefinition
uris
/redfish/v1/Managers/manager_id/NetworkProtocol/HTTPS/Certificates/certificate_id
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | 指定证书资源模型的OData描述信息 | |
| @odata.id | string | true | 指定证书资源节点的访问路径 | |
| @odata.type | string | true | 指定证书资源类型 | |
| Id | string | true | 指定证书资源的ID | |
| Name | string | true | 指定证书资源的名称 | |
| AlternativeNames | array | true | 使用者可选名称说明BMC300 5.9.0.1及以上版本支持 | |
| CertificateString | string | true | 指定证书内容 | |
| CertificateType | string | true | 指定证书类型 | |
| SerialNumber | string | true | 指定证书序列号 | |
| SignatureAlgorithm | string | true | 指定证书签名算法 | |
| KeyUsage | array | true | 指定证书密钥用途 | |
| Fingerprint | string | true | 指定证书指纹信息 | |
| FingerprintHashAlgorithm | string | true | 指定证书指纹信息算法 |
supported_methods
- GET
HTTP methods
GET
命令功能
查询指定 SSL 证书资源信息
说明 查询指定SSL证书资源信息,当前仅支持Subject下的AlternativeNames字段查询,剩 余SSL证书历史资源请在redfish/v1/Managers/manager_id/SecurityService/HttpsCert 下进行查看
命令格式
URL: https://device_ip/redfish/v1/Managers/manager_id/NetworkProtocol/HTTPS/Certificates/certificate_id
请求头:
X-Auth-Token: auth_value请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
| auth_value | 请求消息的鉴权参数 | 可通过/redfish/v1/SessionService/Sessions创建会话时获得 |
使用指南
无
使用实例
请求样例: GET https://device_ip/redfish/v1/Managers/manager_id/NetworkProtocol/HTTPS/Certificates/certificate_id
X-Auth-Token: auth_value 请求消息体:无
响应样例:
json
{
"@odata.context": "/redfish/v1/$metadata#Certificate.Certificate",
"@odata.id": "/redfish/v1/Managers/1/NetworkProtocol/HTTPS/Certificates/1",
"@odata.type": "#Certificate.v1_9_0.Certificate",
"Name": "Manager SSL Certificates",
"Id": "1",
"CertificateString": "-----BEGIN CERTIFICATE-----\n...-----END CERTIFICATE-----\n",
"CertificateType": "PEM",
"Subject": {
"Organization": "Computing",
"City": "CD",
"State": "SC",
"CommonName": "FullSSL",
"OrganizationalUnit": "BMC",
"Country": "CN",
"AlternativeNames": [
"DNS:FullSSL"
]
},
"Issuer": {
"Organization": "Computing",
"City": "CD",
"State": "SC",
"CommonName": "FullCA",
"OrganizationalUnit": "BMC",
"Country": "CN"
},
"SerialNumber": "3c:ba:f2:6d:0f:f7:da:6d",
"SignatureAlgorithm": "sha256WithRSAEncryption",
"KeyUsage": [
"KeyEncipherment",
"NonRepudiation",
"DigitalSignature",
"CRLSigning",
"DataEncipherment",
"KeyCertSign",
"KeyAgreement"
],
"Fingerprint": "b7:f0:a9:3b:07:83:94:6b:c8:72:d9:9c:f6:6b:c4:80:c7:f6:4a:a4:ac:cb:47:b8:73:51:33:ab:ba:f9:7d:52",
"FingerprintHashAlgorithm": "TPM_ALG_SHA256"
}响应码:200