Get Certificates API
출처: 문서
본문
Get Certificates API
2.0에 도입됨 {: .label .label-purple }
요청을 수신하는 노드에서 사용 중인 HTTP 인증서와 transport 인증서를 조회해요. 클러스터에 있는 모든 노드에서 사용 중인 인증서를 조회하려면 Get All Certificates API를 사용하세요.
이 API는 슈퍼어드민(superadmin) 전용이에요. 사용자 이름과 비밀번호 대신 어드민 인증서로 인증하세요. 자세한 내용은 Access control for the API를 참고하세요. {: .note}
엔드포인트
GET /_plugins/_security/api/ssl/certs
요청 예제
GET _plugins/_security/api/ssl/certs
{% include copy-curl.html security=true %}
응답 예제
{
"http_certificates_list": [
{
"issuer_dn": "CN=Example Com Inc. Root CA,OU=Example Com Inc. Root CA,O=Example Com Inc.,DC=example,DC=com",
"subject_dn": "CN=node-0.example.com,OU=node,O=node,L=test,C=de",
"san": "[[2, localhost], [2, node-0.example.com], [7, 0:0:0:0:0:0:0:1], [7, 127.0.0.1], [8, 1.2.3.4.5.5]]",
"not_before": "2024-02-20T17:03:25Z",
"not_after": "2034-02-17T17:03:25Z"
}
],
"transport_certificates_list": [
{
"issuer_dn": "CN=Example Com Inc. Root CA,OU=Example Com Inc. Root CA,O=Example Com Inc.,DC=example,DC=com",
"subject_dn": "CN=node-0.example.com,OU=node,O=node,L=test,C=de",
"san": "[[2, localhost], [2, node-0.example.com], [7, 0:0:0:0:0:0:0:1], [7, 127.0.0.1], [8, 1.2.3.4.5.5]]",
"not_before": "2024-02-20T17:03:25Z",
"not_after": "2034-02-17T17:03:25Z"
}
]
}
응답 본문 필드
응답 본문은 다음과 같은 필드를 가진 JSON 객체예요.
| 필드 | 데이터 타입 | 설명 |
|---|---|---|
http_certificates_list |
Array of objects | REST 계층을 보호하는 인증서예요. |
transport_certificates_list |
Array of objects | transport 계층을 보호하는 인증서예요. |
각 인증서에는 다음 필드가 포함되어 있어요.
| 필드 | 데이터 타입 | 설명 |
|---|---|---|
issuer_dn |
String | 인증서를 발급한 인증 기관의 고유 이름(DN)이에요. |
subject_dn |
String | 인증서 주체의 고유 이름(DN)이에요. |
san |
String | 인증서의 주체 대체 이름(SAN)이에요. |
not_before |
String | 인증서가 유효해지는 날짜와 시간이에요. |
not_after |
String | 인증서가 만료되는 날짜와 시간이에요. |