다음 요청은 호스트에 있는 모든 시스템 인증서의 등록 정보와 default 등록 정보의 값을 나열합니다.
요청 예:
GET /api/setting/v2/certificates/system HTTP/1.1 Host: alice.example.com:215 Authorization: Basic Tm8gcGVla2luZyE= Accept: application/json
결과 예:
다음 예제에서 첫번째 인증서는 자동 생성된 기존 인증서입니다(도메인 또는 IP 주소 기반). 두번째 인증서는 ASN(어플라이언스 일련 번호) UUID를 기반으로 하는 자동 생성된 인증서입니다.
이 결과의 끝에서 default 등록 정보의 값은 시스템 기본 인증서가 자동으로 선택된 것을 보여줍니다.
HTTP/1.1 200 OK Date: Sat, 08 May 2021 00:37:21 GMT Content-Type: application/json; charset=utf-8 X-Zfssa-Api-Version: 2.0 X-Zfssa-Setting-Api: 2.0 Content-Length: 1975 { "certificates": [ { "uuid": "system-cert1-uuid", "type": "cert", "data": { "subject": [ { "countryName": "US" }, { "stateOrProvinceName": "CA" }, { "localityName": "Exampleton" }, { "organizationName": "Example Corp, Inc" }, { "commonName": "alice.example.com" } ], "issuer": [ { "countryName": "US" }, { "stateOrProvinceName": "AK" }, { "localityName": "Trustville" }, { "organizationName": "Totally Trustworthy Certificates, Inc" }, { "commonName": "Most Trusted Certificate" } ], "serialNumber": "64", "validity": { "notBefore": "20210520T21:08:27", "notAfter": "20220520T21:08:27" }, "extensions": { "basicConstraints": { "value": [ { "CA": false } ] }, "subjectKeyIdentifier": { "value": "subjectKeyIdentifier" }, "authorityKeyIdentifier": { "value": [ { "keyid": "authorityKeyIdentifier" } ] }, "subjectAltName": { "value": [ { "DNS": "alice.example.com" }, { "IP": "alice.example.com-ipaddr" } ] } } }, "sha1fingerprint": "sha1fingerprint", "href": "/api/setting/v2/certificates/system/system-cert1-uuid" }, { "uuid": "system-cert2-uuid", "type": "cert", "asn": "8bf7f9bc-8b3a-4064-e59f-bf09e3dba275", "data": { "subject": [ { "commonName": "8bf7f9bc-8b3a-4064-e59f-bf09e3dba275" } ], "issuer": [ { "commonName": "8bf7f9bc-8b3a-4064-e59f-bf09e3dba275" } ], "serialNumber": "59:8A:73:7B:00:00:00:07", "validity": { "notBefore": "20060215T18:00:00", "notAfter": "20380119T03:14:07" }, "extensions": { "nsComment": { "value": "Automatically generated" }, "subjectAltName": { "critical": true, "value": [ { "DirName": "8bf7f9bc-8b3a-4064-e59f-bf09e3dba275" } ] } } }, "sha1fingerprint": "sha1fingerprint", "href": "/api/setting/v2/certificates/system/system-cert2-uuid" } ], "default": "auto" }
다음 요청은 지정된 trusted-cert1-uuid 신뢰할 수 있는 인증서의 등록 정보를 나열합니다.
요청 예:
GET /api/setting/v2/certificates/trusted/trusted-cert1-uuid HTTP/1.1 Host: alice.example.com:215 Authorization: Basic Tm8gcGVla2luZyE= Accept: application/json
결과 예:
HTTP/1.1 200 OK Date: Sat, 08 May 2021 00:37:57 GMT Content-Length: 984 Content-Type: application/json; charset=utf-8 X-Zfssa-Setting-Api: 2.0 X-Zfssa-Api-Version: 2.0 { "certificate": { "uuid": "trusted-cert1-uuid", "type": "cert_ca", "data": { "subject": [ { "countryName": "US" }, { "stateOrProvinceName": "AK" }, { "localityName": "Trustville" }, { "organizationName": "Totally Trustworthy Certificates, Inc" }, { "commonName": "Most Trusted Certificate" } ], "issuer": [ { "countryName": "US" }, { "stateOrProvinceName": "AK" }, { "localityName": "Trustville" }, { "organizationName": "Totally Trustworthy Certificates, Inc" }, { "commonName": "Most Trusted Certificate" } ], "serialNumber": "83:F7:79:02:5F:44:4D:60", "validity": { "notBefore": "20210316T17:28:37", "notAfter": "20210415T17:28:37" }, "extensions": { "subjectKeyIdentifier": { "value": "subjectKeyIdentifier" }, "authorityKeyIdentifier": { "value": [ { "keyid": "authorityKeyIdentifier" } ] }, "basicConstraints": { "value": [ { "CA": true } ] } } }, "sha1fingerprint": "sha1fingerprint", "services": [ "ldap", "cloud" ], "href": "/api/setting/v2/certificates/trusted/trusted-cert1-uuid" } }