ACME 플러그인 OpenAPI 사양
ACME 플러그인 OpenAPI 사양 (ACME Plugin OpenAPI Specification)
이 문서는 Kong에서 ACME 인증서를 관리하는 ACME 플러그인 API의 OpenAPI 사양을 담고 있어요. 인증서 적용과 갱신, 백그라운드 갱신, 인증서 목록 조회 같은 엔드포인트와 요청·응답 형식이 정의되어 있어요. Kong Admin API의 기본 서버 설정과 개인 액세스 토큰 기반 인증 방식도 함께 확인할 수 있어요
출처: 문서
본문
---
openapi: 3.0.2
info:
title: ACME Plugin API
version: 1.0.0
description: API for managing ACME certificates in Kong.
contact:
email: docs@konghq.com
name: Kong Inc
url: https://konghq.com
externalDocs:
description: Acme Plugin API Specification
url: https://developer.konghq.com
servers:
- description: Default Admin API URL
url: "{protocol}://{hostname}:{port}{path}"
variables:
hostname:
default: localhost
description: Hostname for Kong's Admin API
path:
default: "/"
description: Base path for Kong's Admin API
port:
default: '8001'
description: Port for Kong's Admin API
protocol:
default: http
description: Protocol for requests to Kong's Admin API
enum:
- http
- https
security:
- personalAccessToken: []
paths:
"/acme":
post:
operationId: applyCertificate
summary: Apply or Renew Certificate
description: Applies or renews the certificate and returns the result.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- host
properties:
host:
type: string
description: The domain where the certificate should be created.
example: example.com
test_http_challenge_flow:
type: boolean
description: Only checks if the configuration is valid without applying
the certificate.
responses:
'201':
description: Certificate successfully applied.
'400':
description: Bad request, invalid parameters.
'500':
description: Internal server error.
tags:
- ACME
patch:
operationId: updateCertificate
summary: Update Certificate
description: Apply or renew a certificate in the background.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- host
properties:
host:
type: string
description: The domain where the certificate should be created.
example: example.com
test_http_challenge_flow:
type: boolean
description: Only checks if the configuration is valid without applying
the certificate.
responses:
'202':
description: Renewal process started successfully.
tags:
- ACME
"/acme/certificates":
get:
operationId: listCertificates
summary: Get ACME Certificates
description: Lists all certificates created by the ACME plugin.
parameters:
- name: invalid_only
in: query
description: Filter to show only invalid certificates.
schema:
type: boolean
responses:
'200':
description: List of certificates.
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
host:
type: string
issuer_cn:
type: string
not_before:
type: string
format: date-time
not_after:
type: string
format: date-time
valid:
type: boolean
tags:
- ACME
"/acme/certificates/{host}":
get:
operationId: getCertificateByHost
summary: Get Certificate by Host
description: Retrieves certificate information for a specific host.
parameters:
- name: host
in: path
required: true
description: The hostname of the certificate to retrieve.
schema:
type: string
responses:
'200':
description: Certificate details.
'404':
description: Certificate not found.
tags:
- ACME
components:
securitySchemes:
personalAccessToken:
type: http
scheme: bearer
bearerFormat: Token
tags:
- name: ACME
description: ACME Plugin API Endpoints
관련 리소스
더 알아보기 (Learn more)
- ngrok과 ACME 플러그인을 사용해 로컬 환경에서 인증서 발급을 테스트하는 방법을 안내해요 — Test certificate generation locally with ngrok and the ACME plugin
- Kong의 Key 엔터티 구조와 용도를 설명해요 — Key entity
- Kong의 Key Set 엔터티 구조와 용도를 설명해요 — Key Set entity