Certificates
更新时间: 2026/06/26
在Gitcode上查看源码ResourceDefinition
uris
/redfish/v1/Systems/system_id/SecureBoot/SecureBootDatabases/database_id/Certificates/certificate_id
properties
| 名称 | 类型 | 是否只读 | 取值范围/枚举值 | 说明 |
|---|---|---|---|---|
| @odata.context | string | true | - | 安全启动证书的OData描述 |
| @odata.id | string | true | - | 安全启动证书的访问路径 |
| @odata.type | string | true | - | 安全启动证书的类型 |
| Id | string | true | - | 安全启动证书的ID |
| Name | string | true | - | 安全启动证书的名称 |
| KeyUsage | array | true | - | 密钥用法 |
| Issuer | object | true | - | 证书颁发者信息 |
| Subject | object | true | - | 证书使用者信息 |
| Country | string | true | - | 国家 |
| State | string | true | - | 省、州 |
| City | string | true | - | 城市 |
| Organization | string | true | - | 组织 |
| OrganizationUnit | string | true | - | 组织单位 |
| CommonName | string | true | - | 通用名称 |
| string | true | - | 邮箱 | |
| Fingerprint | string | true | - | 指纹信息 |
| SerialNumber | string | true | - | 序列号 |
| CertificateType | string | true | - | 证书类型 |
| UefiSignatureOwner | string | true | - | UEFI签名属主 |
| ValidNotBefore | string | true | - | 有效开始日期 |
| ValidNotAfter | string | true | - | 有效截止日期 |
| FingerprintHashAlgorithm | string | true | - | 指纹哈希算法 |
| SignatureAlgorithm | string | true | - | 签名算法 |
supported_methods
- GET
HTTP methods
GET
命令功能
查询安全启动数据库中安全启动证书属性
说明
系统启动过程中无法查询证书信息。
命令格式
URL: https://device_ip/redfish/v1/Systems/system_id/SecureBoot/SecureBootDatabases/database_id/Certificates/certificate_id
请求头:
X-Auth-Token: 123456789***********************请求消息体: 无
参数说明
| 参数 | 参数说明 | 取值 |
|---|---|---|
| device_ip | 登录设备的IP地址 | IPv4或IPv6地址 |
| system_id | 系统资源的ID | 参见源文件参数说明 |
| auth_value | 请求消息的鉴权参数 | 可通过/redfish/v1/SessionService/Sessions创建会话时获得 |
使用指南
无
使用实例
请求样例:
http
GET https://device_ip/redfish/v1/Systems/system_id/SecureBoot/SecureBootDatabases/database_id/Certificates/certificate_idX-Auth-Token: 123456789***********************
请求消息体:无
响应样例:
json
{
"@odata.context": "/redfish/v1/$metadata#Certificate.Certificate",
"@odata.id": "/redfish/v1/Systems/1/SecureBoot/SecureBootDatabases/db/Certificates/1",
"@odata.type": "#Certificate.v1_11_0.Certificate",
"Id": "Certificates1",
"Name": "SecureBoot Certificate",
"KeyUsage": [
"CRLSigning",
"KeyCertSign"
],
"Issuer": {
"Organization": "",
"Email": "",
"City": "",
"State": "",
"CommonName": "xxx",
"Country": "CN",
"OrganizationUnit": ""
},
"Subject": {
"Organization": "",
"Email": "",
"City": "",
"State": "",
"CommonName": "xxx",
"Country": "CN",
"OrganizationUnit": ""
},
"Fingerprint": "a9:d5:49:e2:14:c1:f8:a2:97:07:90:82:c8:ec:f3:6b:ea:53:9d:ab:a3:1c:7d:56:88:aa:bb:c7:ab:9c:cb:c2",
"SerialNumber": "45:b6:14:73:38:30:b4:79",
"CertificateType": "PEM",
"UefiSignatureOwner": "AFD3CB82-E75B-897B-1FB0-091F3CBBEB88",
"ValidNotBefore": "2015-10-15",
"ValidNotAfter": "2050-10-15",
"FingerprintHashAlgorithm": "TPM_ALG_SHA256",
"SignatureAlgorithm": "sha256WithRSAEncryption"
}响应码:200