gufo.acme.clients.dav¶
A DavAcmeClient implementation.
DavAcmeClient
¶
Bases: AcmeClient
WebDAV-compatible ACME Client.
Fulfills http-01 challenge by uploading a token using HTTP PUT/DELETE methods with basic authorization. Works either with WebDAV modules or with custom scripts.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
DAV user name. |
required |
password |
str
|
DAV password. |
required |
clear_http_01(domain, challenge)
async
¶
Remove provisioned token.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
domain |
str
|
Domain name |
required |
challenge |
AcmeChallenge
|
AcmeChallenge instance, containing token. |
required |
Raises:
Type | Description |
---|---|
AcmeFulfillmentFailed
|
On error. |
fulfill_http_01(domain, challenge)
async
¶
Perform http-01 fullfilment.
Execute PUT method to place a token.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
domain |
str
|
Domain name |
required |
challenge |
AcmeChallenge
|
AcmeChallenge instance, containing token. |
required |
Returns:
Type | Description |
---|---|
bool
|
True - on succeess |
Raises:
Type | Description |
---|---|
AcmeFulfillmentFailed
|
On error. |
get_auth()
¶
Get Auth for request.
Returns:
Type | Description |
---|---|
Auth
|
Auth information to be sent along with |
Auth
|
the request. |