无法修改系统证书或 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" ] }}