Go to main content

Oracle® ZFS Storage Appliance RESTful API 指南,发行版 OS8.8.x

退出打印视图

更新时间: 2021 年 8 月
 
 

指定应信任证书的服务

无法修改系统证书或 CSR 的任何属性。在发布 CSR 之前设置该 CSR 的属性。

您可以设置可信证书的 services 属性的值。services 属性是证书应受信任的服务列表。

以下示例设置可信证书的 services 属性。

PUT /api/setting/v2/certificates/trusted/trusted-cert2-uuid HTTP/1.1
Authorization: Basic Tm8gcGVla2luZyE=
Host: alice.example.com:215
Content-Type: application/json

{"certificate": { "services": ["ldap"] }}

以下示例设置应信任证书的多个服务。

PUT /api/setting/v2/certificates/trusted/trusted-cert2-uuid HTTP/1.1
Authorization: Basic Tm8gcGVla2luZyE=
Host: alice.example.com:215
Content-Type: application/json

{"certificate": {"services": [ "ldap", "cloud" ] }}