HTTPSCertificate
更新时间: 2026/07/01
在Gitcode上查看源码

ResourceDefinition

uris

  • /redfish/v1/Managers/manager_id/NetworkProtocol/HTTPS/Certificates/certificate_id

properties

名称类型是否只读取值范围/枚举值说明
@odata.contextstringtrue指定证书资源模型的OData描述信息
@odata.idstringtrue指定证书资源节点的访问路径
@odata.typestringtrue指定证书资源类型
Idstringtrue指定证书资源的ID
Namestringtrue指定证书资源的名称
AlternativeNamesarraytrue使用者可选名称说明BMC300 5.9.0.1及以上版本支持
CertificateStringstringtrue指定证书内容
CertificateTypestringtrue指定证书类型
SerialNumberstringtrue指定证书序列号
SignatureAlgorithmstringtrue指定证书签名算法
KeyUsagearraytrue指定证书密钥用途
Fingerprintstringtrue指定证书指纹信息
FingerprintHashAlgorithmstringtrue指定证书指纹信息算法

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