查询SSL证书资源信息
命令功能
查询当前支持的SSL证书资源的信息。
命令格式
操作类型:GET
URL:https://device_ip/redfish/v1/Systems/SecurityService/HttpsCert
请求头:
X-Auth-Token: auth_value
请求消息体:无
使用指南
无
使用实例
请求样例:
GET https://10.10.10.10/redfish/v1/Systems/SecurityService/HttpsCert
请求头:
X-Auth-Token: auth_value
请求消息体:无
响应样例:
{ "@odata.context": "/redfish/v1/$metadata#EdgeSystem/SecurityService/HttpsCert/$entity", "@odata.id": "/redfish/v1/EdgeSystem/SecurityService/HttpsCert", "@odata.type": "#MindXEdgeHttpsCert.v1_0_0.MindXEdgeHttpsCert", "Id": "HttpsCert", "Name": "Https cert info", "X509CertificateInformation": { "ServerCert": { "Subject": "CN=Server, OU=IT, O=Huawei, L=ShenZhen, S=GuangDong, C=CN", "Issuer": "CN=Server, OU=IT, O=Huawei, L=ShenZhen, S=GuangDong, C=CN", "ValidNotBefore": "Jul 25 2014 GMT", "ValidNotAfter": "Jul 22 2024 GMT", "SerialNumber": "07" "FingerPrint": "XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:", "HttpsCertEable": "", "ExpiredDayRemaining": 6933 } }, "CertificateSigningRequest": null, "Actions": { "#HttpsCert.ImportServerCertificate": { "target": "/redfish/v1/Systems/SecurityService/HttpsCert/Actions/HttpsCert.ImportServerCertificate" } } }
响应码:200
输出说明
字段 |
类型 |
说明 |
---|---|---|
@odata.context |
字符串 |
SSL证书资源模型的OData描述信息。 |
@odata.id |
字符串 |
SSL证书资源节点的访问路径。 |
@odata.type |
字符串 |
SSL证书资源类型。 |
Id |
字符串 |
SSL证书资源的ID。 |
Name |
字符串 |
SSL证书资源的名称。 |
X509CertificateInformation |
对象 |
SSL证书信息。 |
ServerCert.Subject |
字符串 |
证书使用者。 |
ServerCert.Issuer |
字符串 |
证书签发者。 |
ServerCert.ValidNotBefore |
字符串 |
生效起始日期。 |
ServerCert.ValidNotAfter |
字符串 |
生效结束日期。 |
ServerCert.SerialNumber |
字符串 |
证书序列号。 |
ServerCert.FingerPrint |
字符串 |
证书指纹信息。 |
ServerCert.HttpsCertEable |
字符串 |
使能。 |
ServerCert.ExpiredDayRemaining |
数字 |
证书有效期。 |
ServerCert.CertificateSigningRequest |
字符串 |
CSR信息。 说明:
导入服务器证书后,之前生成的CSR信息清除,此处显示为“null”。 |
Actions |
对象 |
可执行的操作。 |
Actions.#HttpsCert.ImportServerCertificate |
对象 |
导入服务器证书的资源路径。 |
父主题: 安全管理