csr_proxy.api¶
API endpoint.
API
¶
Bases: object
API Enpoint.
Accepts the client requests and orchestrates DNS and ACME servers.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config |
Config
|
Service configuration. |
required |
get_client()
async
¶
Get PowerDnsAcmeClient instance.
Updates state when necessary.
Returns:
Type | Description |
---|---|
PowerDnsAcmeClient
|
Configured ACME client. |
get_subj(csr)
staticmethod
¶
Get subject from CSR.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
csr |
bytes
|
CSR in PEM format. |
required |
Returns:
Type | Description |
---|---|
str
|
CSR subject. |
run(config)
staticmethod
¶
Run service.
sign(request)
async
¶
Sign endpoint.
Accepts client's CSR, signs it and returns the signed certificate.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
request |
Request
|
HTTP request. |
required |
Returns:
Type | Description |
---|---|
Response
|
HTTP Response. |